You are here

public function MessageNotifyForm::validateForm in Message UI 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

modules/message_notify_ui/src/Form/MessageNotifyForm.php, line 195

Class

MessageNotifyForm
Provides a form for send a message entity.

Namespace

Drupal\message_notify_ui\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $this->messageNotifyUiSenderSettingsForm
    ->createInstance($this->plugins[$form_state
    ->getValue('senders')])
    ->setMessage($this->entity)
    ->validate($form, $form_state);
}