public function EntityBrowserForm::validateForm in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Form/EntityBrowserForm.php \Drupal\entity_browser\Form\EntityBrowserForm::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
- src/
Form/ EntityBrowserForm.php, line 218
Class
- EntityBrowserForm
- The entity browser form.
Namespace
Drupal\entity_browser\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$this->entityBrowser
->getWidgetSelector()
->validate($form, $form_state);
$this->entityBrowser
->getWidgets()
->get($this
->getCurrentWidget($form_state))
->validate($form, $form_state);
$this->entityBrowser
->getSelectionDisplay()
->validate($form, $form_state);
}