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