function SessionHelper::getStore
Same name in other branches
- 8.x-1.x stream_wrapper_example/src/SessionHelper.php \Drupal\stream_wrapper_example\SessionHelper::getStore()
- 4.0.x modules/stream_wrapper_example/src/SessionHelper.php \Drupal\stream_wrapper_example\SessionHelper::getStore()
Get the contents of the session filesystem.
Return value
array An associated array where scalar data represents a file, and arrays represent directories.
2 calls to SessionHelper::getStore()
- SessionHelper::clearPath in modules/
stream_wrapper_example/ src/ SessionHelper.php - Clear a path into our store.
- SessionHelper::processPath in modules/
stream_wrapper_example/ src/ SessionHelper.php - Turn a path into the arrays we use internally.
File
-
modules/
stream_wrapper_example/ src/ SessionHelper.php, line 59
Class
- SessionHelper
- Helper to manage file wrapper data stored in the session object.
Namespace
Drupal\stream_wrapper_exampleCode
protected function getStore() {
$session = $this->getSession();
$store = $session->get(static::SESSION_BASE_ATTRIBUTE, []);
return $store;
}