You are here

public function OpenlayersPluginFormBase::validateForm in Openlayers 8.4

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/OpenlayersPluginFormBase.php, line 116

Class

OpenlayersPluginFormBase
Provides a base form for the settings for Openlayers plugins.

Namespace

Drupal\openlayers\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {

  // The image effect configuration is stored in the 'data' key in the form,
  // pass that through for validation.
  $this->olPlugin
    ->validateConfigurationForm($form['data'], SubformState::createForSubform($form['data'], $form, $form_state));
}