public function Session::remove

Removes an attribute.

@api

Parameters

string $name:

Return value

mixed The removed value

Overrides SessionInterface::remove

File

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

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function remove($name) {
  return $this->storage
    ->getBag($this->attributeName)
    ->remove($name);
}