You are here

public function TemplateEditForm::validateForm in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Form/TemplateEditForm.php \Drupal\courier\Form\TemplateEditForm::validateForm()

@inheritDoc

Overrides FormBase::validateForm

File

src/Form/TemplateEditForm.php, line 155

Class

TemplateEditForm
Create a message.

Namespace

Drupal\courier\Form

Code

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

  /** @var \Drupal\courier\ChannelInterface $message */
  $message = $form_state
    ->get('message_entity');
  $form_state
    ->get([
    'form_display',
  ])
    ->validateFormValues($message, $form, $form_state);
}