public function Session::has in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\SessionCode
public function has($name) {
return $this->storage
->getBag($this->attributeName)
->has($name);
}