public function Session::clear

Clears all attributes.

@api

Overrides SessionInterface::clear

File

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

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function clear() {
  $this->storage
    ->getBag($this->attributeName)
    ->clear();
}