class AccessResultAllowed

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Access/AccessResultAllowed.php \Drupal\Core\Access\AccessResultAllowed
  2. 10 core/lib/Drupal/Core/Access/AccessResultAllowed.php \Drupal\Core\Access\AccessResultAllowed
  3. 9 core/lib/Drupal/Core/Access/AccessResultAllowed.php \Drupal\Core\Access\AccessResultAllowed
  4. 8.9.x core/lib/Drupal/Core/Access/AccessResultAllowed.php \Drupal\Core\Access\AccessResultAllowed

Value object indicating an allowed access result, with cacheability metadata.

Hierarchy

Expanded class hierarchy of AccessResultAllowed

9 files declare their use of AccessResultAllowed
AnnounceBlockTest.php in core/modules/announcements_feed/tests/src/FunctionalJavascript/AnnounceBlockTest.php
BlockContentAccessHandlerTest.php in core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php
BlockPluginHasSettingsTrayFormAccessCheckTest.php in core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php
LatestRevisionCheckTest.php in core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php
LinkBaseTest.php in core/modules/views/tests/src/Unit/Plugin/views/field/LinkBaseTest.php

... See full list

2 string references to 'AccessResultAllowed'
RendererTest::testRenderWithAccessControllerResolved in core/tests/Drupal/Tests/Core/Render/RendererTest.php
Tests render with access controller resolved.
TestAccessClass::trustedCallbacks in core/tests/Drupal/Tests/Core/Render/RendererTest.php

File

core/lib/Drupal/Core/Access/AccessResultAllowed.php, line 8

Namespace

Drupal\Core\Access
View source
class AccessResultAllowed extends AccessResult {
  
  /**
   * {@inheritdoc}
   */
  public function isAllowed() {
    return TRUE;
  }

}

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