public function AccessCheck::__construct in Drupal 9
Same name and namespace in other branches
- 10 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\AccessCode
public function __construct(RequestStack $request_stack) {
$this->requestStack = $request_stack;
}