W3cubDocs

/Drupal 8

protected function FormAjaxSubscriber::drupalSetMessage

protected FormAjaxSubscriber::drupalSetMessage($message = NULL, $type = 'status', $repeat = FALSE)

Wraps drupal_set_message().

@codeCoverageIgnore

File

core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 161

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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!EventSubscriber!FormAjaxSubscriber.php/function/FormAjaxSubscriber::drupalSetMessage/8.1.x