public function LegacyMessenger::deleteMessages in Service Container 7
Same name and namespace in other branches
- 8 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::deleteMessages()
- 7.2 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::deleteMessages()
Deletes all messages.
Return value
$this
Overrides MessengerInterface::deleteMessages
File
- src/
Messenger/ LegacyMessenger.php, line 60 - Contains \Drupal\service_container\LegacyMessenger.
Class
- LegacyMessenger
- Class that manage the messages in Drupal.
Namespace
Drupal\service_container\MessengerCode
public function deleteMessages() {
$this->drupal7
->drupal_get_messages(NULL, TRUE);
return $this;
}