function SessionHelper::setStore

Same name in other branches
  1. 3.x modules/stream_wrapper_example/src/SessionHelper.php \Drupal\stream_wrapper_example\SessionHelper::setStore()
  2. 4.0.x modules/stream_wrapper_example/src/SessionHelper.php \Drupal\stream_wrapper_example\SessionHelper::setStore()

Set the contents of our session filesystem.

Parameters

array $store: The whole filesystem represented as an array.

2 calls to SessionHelper::setStore()
SessionHelper::clearPath in stream_wrapper_example/src/SessionHelper.php
Clear a path into our store.
SessionHelper::setPath in stream_wrapper_example/src/SessionHelper.php
Set a path.

File

stream_wrapper_example/src/SessionHelper.php, line 71

Class

SessionHelper
Helper to manage file wrapper data stored in the session object.

Namespace

Drupal\stream_wrapper_example

Code

protected function setStore(array $store) {
    $session = $this->getSession();
    $session->set(static::SESSION_BASE_ATTRIBUTE, $store);
}