public function FlashBag::all

Gets and clears flashes from the stack.

Return value

array

Overrides FlashBagInterface::all

2 calls to FlashBag::all()
FlashBag::clear in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php
Clears out data from bag.
FlashBag::getIterator in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php
Returns an iterator for flashes.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php, line 111

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function all() {
  $return = $this
    ->peekAll();
  $this->flashes = array();
  return $return;
}