You are here

public function AttributeBag::clear in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::clear()

Clears out data from bag.

Return value

mixed Whatever data was contained.

Overrides SessionBagInterface::clear

File

vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php, line 130

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function clear() {
  $return = $this->attributes;
  $this->attributes = array();
  return $return;
}