You are here

public function EntityBrowserForm::validateForm in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 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\Form

Code

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);
}