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

Breadcrumb

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

function AttributeBag::get

Overrides AttributeBagInterface::get

File

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

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function get(string $name, mixed $default = null) : mixed {
    return \array_key_exists($name, $this->attributes) ? $this->attributes[$name] : $default;
}

API Navigation

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