LegacyMessenger::$messages

The messages.

Note: this property must remain static because it must behave in a persistent manner, similar to $_SESSION['messages']. Creating a new class each time would destroy any previously set messages.

Type: array

File

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

Class

LegacyMessenger
Provides a LegacyMessenger implementation.

Namespace

Drupal\Core\Messenger

Code

protected static $messages;

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