public function AttributeBag::set

Sets an attribute.

Parameters

string $name:

mixed $value:

Overrides AttributeBagInterface::set

1 call to AttributeBag::set()
AttributeBag::replace in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php
Sets attributes.
1 method overrides AttributeBag::set()
NamespacedAttributeBag::set in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php
Sets an attribute.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php, line 89

Class

AttributeBag
This class relates to session attribute storage

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function set($name, $value) {
  $this->attributes[$name] = $value;
}