function TestController::accessRequest

Same name in other branches
  1. 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

TestController

Namespace

Drupal\Tests\Core\Access

Code

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.