QuickEditFieldForm::validateForm

public QuickEditFieldForm::validateForm(array &$form, FormStateInterface $form_state)

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 152

Class

QuickEditFieldForm
Builds and process a form for editing a single entity field.

Namespace

Drupal\quickedit\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $entity = $this->buildEntity($form, $form_state);
  $form_state->get('form_display')->validateFormValues($entity, $form, $form_state);
}
doc_Drupal
2016-10-29 09:36:13
Comments
Leave a Comment

Please login to continue.