You are here

public function AttributeBagInterface::get in Zircon Profile 8

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

Returns an attribute.

Parameters

string $name The attribute name:

mixed $default The default value if not found:

Return value

mixed

1 method overrides AttributeBagInterface::get()
AttributeBag::get in vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php
Returns an attribute.

File

vendor/symfony/http-foundation/Session/Attribute/AttributeBagInterface.php, line 40

Class

AttributeBagInterface
Attributes store.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function get($name, $default = null);