Resolves the key from the name.
This is the last part in a dot separated string.
Parameters
string $name:
Return value
string
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;
}