You are here

public static function Drupal::messenger in Drupal 10

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

Returns the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

104 calls to Drupal::messenger()
ajax_forms_test_validation_form_callback in core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module
Ajax form callback: Selects the 'drivertext' element of the validation form.
ajax_forms_test_validation_number_form_callback in core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module
Ajax form callback: Selects the 'drivernumber' element of the validation form.
AreaMessagesTest::testMessageText in core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
Tests the messages area handler.
authorize.php in core/authorize.php
Administrative script for running authorized file operations.
BatchUserAction::finishBatch in core/modules/views/tests/modules/user_batch_action_test/src/Plugin/Action/BatchUserAction.php
Finish batch.

... See full list

File

core/lib/Drupal.php, line 731

Class

Drupal
Static Service Container wrapper.

Code

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