class TestAccessCheck
Same name in other branches
- 9 core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck
- 8.9.x core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck
- 10 core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck
Access check for test routes.
Hierarchy
- class \Drupal\router_test\Access\TestAccessCheck implements \Drupal\Core\Routing\Access\AccessInterface
Expanded class hierarchy of TestAccessCheck
File
-
core/
modules/ system/ tests/ modules/ router_test_directory/ src/ Access/ TestAccessCheck.php, line 13
Namespace
Drupal\router_test\AccessView source
class TestAccessCheck implements AccessInterface {
/**
* Checks access.
*
* @return \Drupal\Core\Access\AccessResultInterface
* The access result.
*/
public function access() {
// No opinion, so other access checks should decide if access should be
// allowed or not.
return AccessResult::neutral();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestAccessCheck::access | public | function | Checks access. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.