Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AttributeBag.php

function AttributeBag::remove

Overrides AttributeBagInterface::remove

File

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

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function remove(string $name) : mixed {
    $retval = null;
    if (\array_key_exists($name, $this->attributes)) {
        $retval = $this->attributes[$name];
        unset($this->attributes[$name]);
    }
    return $retval;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal