You are here

public function AttributeBag::has in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::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 AttributeBagInterface::has

1 method overrides AttributeBag::has()
NamespacedAttributeBag::has in vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php
Checks if an attribute is defined.

File

vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php, line 73

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function has($name) {
  return array_key_exists($name, $this->attributes);
}