function TestController::accessRequest
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\TestController::accessRequest()
File
-
core/
tests/ Drupal/ Tests/ Core/ Access/ CustomAccessCheckTest.php, line 156
Class
Namespace
Drupal\Tests\Core\AccessCode
public function accessRequest(Request $request) {
return AccessResult::allowedIf($request->query
->get('example') === 'muh');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.