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. 8.9.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestAccessClass::accessResultForbidden()
  3. 10 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\TestAccessClass::accessResultForbidden()

File

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

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.