public function QuickEditFieldForm::validateForm in Drupal 8
Same name and namespace in other branches
- 9 core/modules/quickedit/src/Form/QuickEditFieldForm.php \Drupal\quickedit\Form\QuickEditFieldForm::validateForm()
- 10 core/modules/quickedit/src/Form/QuickEditFieldForm.php \Drupal\quickedit\Form\QuickEditFieldForm::validateForm()
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormBase::validateForm
File
- core/
modules/ quickedit/ src/ Form/ QuickEditFieldForm.php, line 146
Class
- QuickEditFieldForm
- Builds and process a form for editing a single entity field.
Namespace
Drupal\quickedit\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$entity = $this
->buildEntity($form, $form_state);
$form_state
->get('form_display')
->validateFormValues($entity, $form, $form_state);
}