public function QuickEditFieldForm::validateForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 157 - Contains \Drupal\quickedit\Form\QuickEditFieldForm.
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);
}