function AccessCheck::__construct
Same name in other branches
- 9 core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php \Drupal\menu_test\Access\AccessCheck::__construct()
- 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 31
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.