function FormTestHooks::formFormTestAlterFormAlter
Same name and namespace in other branches
- main core/modules/system/tests/modules/form_test/src/Hook/FormTestHooks.php \Drupal\form_test\Hook\FormTestHooks::formFormTestAlterFormAlter()
Implements hook_form_FORM_ID_alter().
Attributes
#[Hook('form_form_test_alter_form_alter')]
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ Hook/ FormTestHooks.php, line 40
Class
- FormTestHooks
- Hook implementations for form_test.
Namespace
Drupal\form_test\HookCode
public function formFormTestAlterFormAlter(&$form, FormStateInterface $form_state) : void {
\Drupal::messenger()->addStatus('form_test_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.