You are here

public static function Drupal::messenger in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal.php \Drupal::messenger()

Returns the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

7 calls to Drupal::messenger()
ConfigImporterBatch::finish in core/lib/Drupal/Core/Config/Importer/ConfigImporterBatch.php
Finish batch.
drupal_get_messages in core/includes/bootstrap.inc
Returns all messages that have been set with drupal_set_message().
drupal_set_message in core/includes/bootstrap.inc
Sets a message to display to the user.
install_config_import_batch in core/includes/install.core.inc
Creates a batch for the config importer to process.
install_config_revert_install_changes in core/includes/install.core.inc
Reverts configuration if hook_install() implementations have made changes.

... See full list

File

core/lib/Drupal.php, line 785
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function messenger() {

  // @todo Replace with service once LegacyMessenger is removed in 9.0.0.
  // @see https://www.drupal.org/node/2928994
  return new LegacyMessenger();
}