You are here

protected static property LegacyMessenger::$messages in Drupal 8

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;