function Messenger::deleteAll

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

Overrides MessengerInterface::deleteAll

File

core/lib/Drupal/Core/Messenger/Messenger.php, line 93

Class

Messenger
The messenger service.

Namespace

Drupal\Core\Messenger

Code

public function deleteAll() {
    return $this->flashBag
        ->clear();
}

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