You are here

public function Session::remove in Zircon Profile 8.0

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

Removes an attribute.

Parameters

string $name:

Return value

mixed The removed value or null when it does not exist

Overrides SessionInterface::remove

File

vendor/symfony/http-foundation/Session/Session.php, line 117

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

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