You are here

public function SessionHelper::cleanUpStore 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::cleanUpStore()

Zero out the store.

File

modules/stream_wrapper_example/src/SessionHelper.php, line 235

Class

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

Namespace

Drupal\stream_wrapper_example

Code

public function cleanUpStore() {
  $session = $this
    ->getSession();
  $session
    ->remove(static::SESSION_BASE_ATTRIBUTE);
}