You are here

public function TestSuggester::validateConfigurationForm in Search API Autocomplete 8

Form validation handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides PluginFormInterface::validateConfigurationForm

File

tests/search_api_autocomplete_test/src/Plugin/search_api_autocomplete/suggester/TestSuggester.php, line 53

Class

TestSuggester
Defines a test suggester class.

Namespace

Drupal\search_api_autocomplete_test\Plugin\search_api_autocomplete\suggester

Code

public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this
    ->logMethodCall(__FUNCTION__, func_get_args());
  if ($override = $this
    ->getMethodOverride(__FUNCTION__)) {
    call_user_func($override, $this, $form, $form_state);
  }
}