You are here

public function FieldConfigurationForm::validateForm in Search API 8

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/FieldConfigurationForm.php, line 185

Class

FieldConfigurationForm
Defines a form for changing a field's configuration.

Namespace

Drupal\search_api\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $field = $this
    ->getField();

  /** @var \Drupal\search_api\Processor\ConfigurablePropertyInterface $property */
  $property = $field
    ->getDataDefinition();
  $property
    ->validateConfigurationForm($field, $form, $form_state);
}