public function AccessCheck::menuLocalAction8 in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php \Drupal\menu_test\Access\AccessCheck::menuLocalAction8()
- 10 core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php \Drupal\menu_test\Access\AccessCheck::menuLocalAction8()
Return value
\Drupal\Core\Access\AccessResultAllowed
1 string reference to 'AccessCheck::menuLocalAction8'
- menu_test.routing.yml in core/
modules/ system/ tests/ modules/ menu_test/ menu_test.routing.yml - core/modules/system/tests/modules/menu_test/menu_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ menu_test/ src/ Access/ AccessCheck.php, line 65
Class
- AccessCheck
- Checks access based on the 'menu_test' key in session.
Namespace
Drupal\menu_test\AccessCode
public function menuLocalAction8() {
return AccessResult::allowed()
->addCacheTags([
'menu_local_action8',
])
->addCacheContexts([
'url.query_args:menu_local_action8',
]);
}