protected function NamespacedAttributeBag::resolveKey

Resolves the key from the name.

This is the last part in a dot separated string.

Parameters

string $name:

Return value

string

4 calls to NamespacedAttributeBag::resolveKey()
NamespacedAttributeBag::get in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php
Returns an attribute.
NamespacedAttributeBag::has in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php
Checks if an attribute is defined.
NamespacedAttributeBag::remove in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php
Removes an attribute.
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/NamespacedAttributeBag.php, line 150

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

protected function resolveKey($name) {
  if (strpos($name, $this->namespaceCharacter) !== false) {
    $name = substr($name, strrpos($name, $this->namespaceCharacter) + 1, strlen($name));
  }
  return $name;
}