function Callbacks::entityTestFormValidateCheck
Validation handler for the entity_test entity form.
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Callbacks.php, line 24
Class
- Callbacks
- Simple object with callbacks.
Namespace
Drupal\entity_testCode
public static function entityTestFormValidateCheck(array &$form, FormStateInterface $form_state) : void {
if (!empty($form['#entity_test_form_validate'])) {
\Drupal::state()->set('entity_test.form.validate.result', TRUE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.