function TestAccessClass::accessResultForbidden

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestAccessClass::accessResultForbidden()
  2. 10 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestAccessClass::accessResultForbidden()
  3. 11.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestAccessClass::accessResultForbidden()

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 1053

Class

TestAccessClass

Namespace

Drupal\Tests\Core\Render

Code

public static function accessResultForbidden() {
    return AccessResult::forbidden();
}

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