You are here

public function ShareMessageForm::validateForm in Share Message 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/ShareMessageForm.php, line 442

Class

ShareMessageForm
Base form controller for Share Message edit forms.

Namespace

Drupal\sharemessage\Form

Code

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

  /** @var \Drupal\sharemessage\ShareMessageInterface $sharemessage */
  $sharemessage = $this->entity;
  $sharemessage
    ->getPlugin()
    ->validateConfigurationForm($form, $form_state);
}