function FormTestHooks::blockFormFormTestAlterFormAlter
Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ Hook/ FormTestHooks.php, line 22
Class
- FormTestHooks
- Hook implementations for form_test.
Namespace
Drupal\form_test\HookCode
public function blockFormFormTestAlterFormAlter(&$form, FormStateInterface $form_state) : void {
\Drupal::messenger()->addStatus('block_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.