You are here

public function MessengerInterface::getMessagesByType in Service Container 7

Same name and namespace in other branches
  1. 8 src/Messenger/MessengerInterface.php \Drupal\service_container\Messenger\MessengerInterface::getMessagesByType()
  2. 7.2 src/Messenger/MessengerInterface.php \Drupal\service_container\Messenger\MessengerInterface::getMessagesByType()

Gets all messages of a certain type.

Parameters

string $type: The messages' type. Either self::STATUS, self::WARNING, or self::ERROR.

Return value

string[]

1 method overrides MessengerInterface::getMessagesByType()
LegacyMessenger::getMessagesByType in src/Messenger/LegacyMessenger.php
Gets all messages of a certain type.

File

src/Messenger/MessengerInterface.php, line 62
Contains \Drupal\Core\Messenger\MessengerInterface.

Class

MessengerInterface

Namespace

Drupal\service_container\Messenger

Code

public function getMessagesByType($type);