function TestSessionHandlerProxy::close

Same name in other branches
  1. 9 core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::close()
  2. 8.9.x core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::close()
  3. 11.x core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::close()

File

core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php, line 52

Class

TestSessionHandlerProxy
Provides a test session handler proxy.

Namespace

Drupal\session_test\Session

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.