function SessionHelper::getSession
Get a fresh session object.
Return value
\Symfony\Component\HttpFoundation\Session\SessionInterface A session object.
3 calls to SessionHelper::getSession()
- SessionHelper::cleanUpStore in modules/stream_wrapper_example/ src/ SessionHelper.php 
- Zero out the store.
- SessionHelper::getStore in modules/stream_wrapper_example/ src/ SessionHelper.php 
- Get the contents of the session filesystem.
- SessionHelper::setStore in modules/stream_wrapper_example/ src/ SessionHelper.php 
- Set the contents of our session filesystem.
File
- 
              modules/stream_wrapper_example/ src/ SessionHelper.php, line 48 
Class
- SessionHelper
- Helper to manage file wrapper data stored in the session object.
Namespace
Drupal\stream_wrapper_exampleCode
protected function getSession() {
  return $this->requestStack
    ->getCurrentRequest()
    ->getSession();
}