public function AutoExpireFlashBag::all

Gets and clears flashes from the stack.

Return value

array

Overrides FlashBagInterface::all

1 call to AutoExpireFlashBag::all()
AutoExpireFlashBag::clear in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/AutoExpireFlashBag.php
Clears out data from bag.

File

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

Class

AutoExpireFlashBag
AutoExpireFlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function all() {
  $return = $this->flashes['display'];
  $this->flashes = array(
    'new' => array(),
    'display' => array(),
  );
  return $return;
}