class TestAccessClass
Hierarchy
- class \Drupal\Tests\Core\Render\TestAccessClass implements \Drupal\Core\Security\TrustedCallbackInterface
Expanded class hierarchy of TestAccessClass
File
- 
              core/tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 1039 
Namespace
Drupal\Tests\Core\RenderView source
class TestAccessClass implements TrustedCallbackInterface {
  public static function accessTrue() {
    return TRUE;
  }
  public static function accessFalse() {
    return FALSE;
  }
  public static function accessResultAllowed() {
    return AccessResult::allowed();
  }
  public static function accessResultForbidden() {
    return AccessResult::forbidden();
  }
  
  /**
   * {@inheritdoc}
   */
  public static function trustedCallbacks() {
    return [
      'accessTrue',
      'accessFalse',
      'accessResultAllowed',
      'accessResultForbidden',
    ];
  }
}Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title | 
|---|---|---|---|---|
| TestAccessClass::accessFalse | public static | function | ||
| TestAccessClass::accessResultAllowed | public static | function | ||
| TestAccessClass::accessResultForbidden | public static | function | ||
| TestAccessClass::accessTrue | public static | function | ||
| TestAccessClass::trustedCallbacks | public static | function | Lists the trusted callbacks provided by the implementing class. | Overrides TrustedCallbackInterface::trustedCallbacks | 
| TrustedCallbackInterface::THROW_EXCEPTION | constant | Untrusted callbacks throw exceptions. | ||
| TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION | constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||
| TrustedCallbackInterface::TRIGGER_WARNING | constant | Untrusted callbacks trigger E_USER_WARNING errors. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
