function TestAccessCheck::access

Same name in other branches
  1. 9 core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck::access()
  2. 8.9.x core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck::access()
  3. 10 core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck::access()

Checks access.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

File

core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php, line 21

Class

TestAccessCheck
Access check for test routes.

Namespace

Drupal\router_test\Access

Code

public function access() {
    // No opinion, so other access checks should decide if access should be
    // allowed or not.
    return AccessResult::neutral();
}

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