Gets a bag instance by name.
Parameters
string $name:
Return value
SessionBagInterface
Overrides SessionInterface::getBag
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php, line 238
Class
- Session
- Session.
Namespace
Symfony\Component\HttpFoundation\Session
Code
public function getBag($name) {
return $this->storage
->getBag($name);
}