You are here

protected function SessionHelper::setStore in Examples for Developers 8

Same name and namespace in other branches
  1. 3.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);
}