function AccessCheck::__construct

Same name in other branches
  1. 10 core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php \Drupal\menu_test\Access\AccessCheck::__construct()
  2. 11.x core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php \Drupal\menu_test\Access\AccessCheck::__construct()

Constructs a new AccessCheck class.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php, line 29

Class

AccessCheck
Checks access based on the 'menu_test' key in session.

Namespace

Drupal\menu_test\Access

Code

public function __construct(RequestStack $request_stack) {
    $this->requestStack = $request_stack;
}

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