Same name and namespace in other branches
- 8.9.x core/lib/Drupal.php \Drupal::messenger()
- 9 core/lib/Drupal.php \Drupal::messenger()
Returns the messenger.
Return value
\Drupal\Core\Messenger\MessengerInterface The messenger.
91 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 'driver_text' 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 'driver_number' 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.
- BigPipeTestController::test in core/
modules/ big_pipe/ tests/ modules/ big_pipe_test/ src/ BigPipeTestController.php - Returns all BigPipe placeholder test case render arrays.
File
- core/
lib/ Drupal.php, line 744
Class
- Drupal
- Static Service Container wrapper.
Code
public static function messenger() {
return static::getContainer()
->get('messenger');
}