You are here

public function Session::has 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::has()

Checks if an attribute is defined.

Parameters

string $name The attribute name:

Return value

bool true if the attribute is defined, false otherwise

Overrides SessionInterface::has

File

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

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

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