protected function SessionHelper::getStore in Examples for Developers 8
Same name and namespace in other branches
- 3.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 stream_wrapper_example/
src/ SessionHelper.php - Clear a path into our store.
- SessionHelper::processPath in stream_wrapper_example/
src/ SessionHelper.php - Turn a path into the arrays we use internally.
File
- 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;
}