class TestController
Hierarchy
- class \Drupal\Tests\Core\Access\TestController
Expanded class hierarchy of TestController
File
- 
              core/tests/ Drupal/ Tests/ Core/ Access/ CustomAccessCheckTest.php, line 142 
Namespace
Drupal\Tests\Core\AccessView source
class TestController {
  public function accessAllow() {
    return AccessResult::allowed();
  }
  public function accessDeny() {
    return AccessResult::neutral();
  }
  public function accessParameter($parameter) {
    return AccessResult::allowedIf($parameter == 'TRUE');
  }
  public function accessRequest(Request $request) {
    return AccessResult::allowedIf($request->query
      ->get('example') === 'muh');
  }
}Members
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| TestController::accessAllow | public | function | |
| TestController::accessDeny | public | function | |
| TestController::accessParameter | public | function | |
| TestController::accessRequest | public | function | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
