You are here

public static function Drupal::messenger in Drupal 9

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

Returns the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

6 calls to Drupal::messenger()
ConfigImporterBatch::finish in core/lib/Drupal/Core/Config/Importer/ConfigImporterBatch.php
Finish batch.
Cookie::__construct in core/modules/user/src/Authentication/Provider/Cookie.php
Constructs a new cookie authentication provider.
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.
MessengerTrait::messenger in core/lib/Drupal/Core/Messenger/MessengerTrait.php
Gets the messenger.

... See full list

File

core/lib/Drupal.php, line 742

Class

Drupal
Static Service Container wrapper.

Code

public static function messenger() {
  return static::getContainer()
    ->get('messenger');
}