public function Session::getBag

Gets a bag instance by name.

Parameters

string $name:

Return value

SessionBagInterface

Overrides SessionInterface::getBag

1 call to Session::getBag()
Session::getFlashBag in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php
Gets the flashbag interface.

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);
}