function TestSessionHandlerProxy::read
Same name in other branches
- 9 core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::read()
- 10 core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::read()
- 11.x core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::read()
File
-
core/
modules/ system/ tests/ modules/ session_test/ src/ Session/ TestSessionHandlerProxy.php, line 62
Class
- TestSessionHandlerProxy
- Provides a test session handler proxy.
Namespace
Drupal\session_test\SessionCode
public function read($session_id) {
$trace = \Drupal::service('session_test.session_handler_proxy_trace');
$trace[] = [
'BEGIN',
$this->optionalArgument,
__FUNCTION__,
$session_id,
];
$result = $this->sessionHandler
->read($session_id);
$trace[] = [
'END',
$this->optionalArgument,
__FUNCTION__,
$session_id,
];
return $result;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.