You are here

public function LegacyMessenger::deleteMessages in Service Container 7.2

Same name and namespace in other branches
  1. 8 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::deleteMessages()
  2. 7 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\Messenger

Code

public function deleteMessages() {
  $this->drupal7
    ->drupal_get_messages(NULL, TRUE);
  return $this;
}