You are here

public function LegacyMessenger::getMessages in Service Container 8

Same name and namespace in other branches
  1. 7.2 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::getMessages()
  2. 7 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::getMessages()

Gets all messages.

Return value

array[] Keys are message types and values are indexed arrays of messages. Message types are either self::STATUS, self::WARNING, or self::ERROR.

Overrides MessengerInterface::getMessages

File

src/Messenger/LegacyMessenger.php, line 45
Contains \Drupal\service_container\LegacyMessenger.

Class

LegacyMessenger
Class that manage the messages in Drupal.

Namespace

Drupal\service_container\Messenger

Code

public function getMessages() {
  return $this->drupal7
    ->drupal_get_messages(NULL, FALSE);
}