function LegacyMessenger::all

Overrides MessengerInterface::all

File

core/lib/Drupal/Core/Messenger/LegacyMessenger.php, line 87

Class

LegacyMessenger
Provides a LegacyMessenger implementation.

Namespace

Drupal\Core\Messenger

Code

public function all() {
    // Proxy to the Messenger service, if it exists.
    if ($messenger = $this->getMessengerService()) {
        return $messenger->all();
    }
    return static::$messages;
}

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