You are here

public function TestSessionHandlerProxy::write in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::write()

File

core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php, line 78
Contains \Drupal\session_test\Session\TestSessionHandlerProxy.

Class

TestSessionHandlerProxy
Provides a test session handler proxy.

Namespace

Drupal\session_test\Session

Code

public function write($session_id, $session_data) {
  $trace = \Drupal::service('session_test.session_handler_proxy_trace');
  $trace[] = [
    'BEGIN',
    $this->optionalArgument,
    __FUNCTION__,
    $session_id,
  ];
  $result = $this->sessionHandler
    ->write($session_id, $session_data);
  $trace[] = [
    'END',
    $this->optionalArgument,
    __FUNCTION__,
    $session_id,
  ];
  return $result;
}