public function AttributeBag::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/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;
}