public function AttributeBag::remove in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::remove()
Removes an attribute.
Parameters
string $name:
Return value
mixed The removed value or null when it does not exist
Overrides AttributeBagInterface::remove
1 method overrides AttributeBag::remove()
- NamespacedAttributeBag::remove in vendor/
symfony/ http-foundation/ Session/ Attribute/ NamespacedAttributeBag.php - Removes an attribute.
File
- vendor/
symfony/ http-foundation/ Session/ Attribute/ AttributeBag.php, line 116
Class
- AttributeBag
- This class relates to session attribute storage.
Namespace
Symfony\Component\HttpFoundation\Session\AttributeCode
public function remove($name) {
$retval = null;
if (array_key_exists($name, $this->attributes)) {
$retval = $this->attributes[$name];
unset($this->attributes[$name]);
}
return $retval;
}