You are here

protected function FormAjaxSubscriber::drupalSetMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber::drupalSetMessage()

Wraps drupal_set_message().

@codeCoverageIgnore

1 call to FormAjaxSubscriber::drupalSetMessage()
FormAjaxSubscriber::onException in core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php
Catches a form AJAX exception and build a response from it.

File

core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 166
Contains \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber.

Class

FormAjaxSubscriber
Wraps AJAX form submissions that are triggered via an exception.

Namespace

Drupal\Core\Form\EventSubscriber

Code

protected function drupalSetMessage($message = NULL, $type = 'status', $repeat = FALSE) {
  drupal_set_message($message, $type, $repeat);
}