function system_form_form_test_alter_form_alter

Same name in other branches
  1. 7.x modules/simpletest/tests/form_test.module \system_form_form_test_alter_form_alter()
  2. 9 core/modules/system/tests/modules/form_test/form_test.module \system_form_form_test_alter_form_alter()
  3. 8.9.x core/modules/system/tests/modules/form_test/form_test.module \system_form_form_test_alter_form_alter()
  4. 11.x core/modules/system/tests/modules/form_test/form_test.module \system_form_form_test_alter_form_alter()

Implements hook_form_FORM_ID_alter().

File

core/modules/system/tests/modules/form_test/form_test.module, line 36

Code

function system_form_form_test_alter_form_alter(&$form, FormStateInterface $form_state) {
    \Drupal::messenger()->addStatus('system_form_form_test_alter_form_alter() executed.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.