Sets an attribute.
Parameters
string $name:
mixed $value:
Overrides AttributeBag::set
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php, line 74
Class
- NamespacedAttributeBag
- This class provides structured storage of session attributes using
a name spacing character in the key.
Namespace
Symfony\Component\HttpFoundation\Session\Attribute
Code
public function set($name, $value) {
$attributes =& $this
->resolveAttributePath($name, true);
$name = $this
->resolveKey($name);
$attributes[$name] = $value;
}