public function FlashBag::clear

Clears out data from bag.

Return value

mixed Whatever data was contained.

Overrides SessionBagInterface::clear

File

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

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

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