You are here

protected function SessionHelper::getStore in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 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_example

Code

protected function getStore() {
  $session = $this
    ->getSession();
  $store = $session
    ->get(static::SESSION_BASE_ATTRIBUTE, []);
  return $store;
}