function AccessCheck::menuLocalAction7

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

Return value

\Drupal\Core\Access\AccessResultForbidden

1 string reference to 'AccessCheck::menuLocalAction7'
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 58

Class

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

Namespace

Drupal\menu_test\Access

Code

public function menuLocalAction7() {
    return AccessResult::forbidden()->addCacheTags([
        'menu_local_action7',
    ])
        ->addCacheContexts([
        'url.query_args:menu_local_action7',
    ]);
}

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