function LegacyMessenger::messagesByType
Overrides MessengerInterface::messagesByType
File
-
core/
lib/ Drupal/ Core/ Messenger/ LegacyMessenger.php, line 154
Class
- LegacyMessenger
- Provides a LegacyMessenger implementation.
Namespace
Drupal\Core\MessengerCode
public function messagesByType($type) {
// Proxy to the Messenger service, if it exists.
if ($messenger = $this->getMessengerService()) {
return $messenger->messagesByType($type);
}
return static::$messages[$type];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.