class AccessResultAllowed
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Access/AccessResultAllowed.php \Drupal\Core\Access\AccessResultAllowed
- 10 core/lib/Drupal/Core/Access/AccessResultAllowed.php \Drupal\Core\Access\AccessResultAllowed
- 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
- class \Drupal\Core\Access\AccessResult extends \Drupal\Core\Access\AccessResultInterface, \Drupal\Core\Cache\RefinableCacheableDependencyInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait
- class \Drupal\Core\Access\AccessResultAllowed implements \Drupal\Core\Access\AccessResult
Expanded class hierarchy of AccessResultAllowed
4 files declare their use of AccessResultAllowed
- 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 - MigrateAccessCheck.php in core/
modules/ migrate_drupal_ui/ src/ MigrateAccessCheck.php - PathBasedBreadcrumbBuilderTest.php in core/
modules/ system/ tests/ src/ Unit/ Breadcrumbs/ PathBasedBreadcrumbBuilderTest.php - Contains \Drupal\Tests\system\Unit\Breadcrumbs\PathBasedBreadcrumbBuilderTest.
2 string references to 'AccessResultAllowed'
- RendererTest::testRenderWithAccessControllerResolved in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - @covers ::render[[api-linebreak]] @covers ::doRender[[api-linebreak]]
- TestAccessClass::trustedCallbacks in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php
File
-
core/
lib/ Drupal/ Core/ Access/ AccessResultAllowed.php, line 8
Namespace
Drupal\Core\AccessView 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.