function MessengerInterface::deleteAll

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::deleteAll()
  2. 10 core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::deleteAll()
  3. 11.x core/lib/Drupal/Core/Messenger/MessengerInterface.php \Drupal\Core\Messenger\MessengerInterface::deleteAll()

Deletes all messages.

Return value

string[]|\Drupal\Component\Render\MarkupInterface[] The deleted messages.

1 method overrides MessengerInterface::deleteAll()
Messenger::deleteAll in core/lib/Drupal/Core/Messenger/Messenger.php
Deletes all messages.

File

core/lib/Drupal/Core/Messenger/MessengerInterface.php, line 120

Class

MessengerInterface
Stores runtime messages sent out to individual users on the page.

Namespace

Drupal\Core\Messenger

Code

public function deleteAll();

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