Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::messenger

Returns the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

5 calls to Drupal::messenger()
ConfigImporterBatch::finish in core/lib/Drupal/Core/Config/Importer/ConfigImporterBatch.php
Finish batch.
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.
SystemHooks::pageTop in core/modules/system/src/Hook/SystemHooks.php
Implements hook_page_top().

File

core/lib/Drupal.php, line 744

Class

Drupal
Static Service Container wrapper.

Code

public static function messenger() {
    return static::getContainer()->get('messenger');
}
RSS feed
Powered by Drupal