function MessengerInterface::all

Same name in other branches
  1. 9 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::all()
  2. 10 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::all()
  3. 11.x core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::all()

Gets all messages.

Return value

string[][]|\Drupal\Component\Render\MarkupInterface[][] Keys are message types and values are indexed arrays of messages. Message types are either self::TYPE_STATUS, self::TYPE_WARNING, or self::TYPE_ERROR.

2 methods override MessengerInterface::all()
LegacyMessenger::all in core/lib/Drupal/Core/Messenger/LegacyMessenger.php
Gets all messages.
Messenger::all in core/lib/Drupal/Core/Messenger/Messenger.php
Gets all messages.

File

core/lib/Drupal/Core/Messenger/MessengerInterface.php, line 100

Class

MessengerInterface
Stores runtime messages sent out to individual users on the page.

Namespace

Drupal\Core\Messenger

Code

public function all();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.