You are here

public function AccessCheck::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 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;
}