Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::allowed()
  2. 9 core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::allowed()

Creates an AccessResultInterface object with isAllowed() === TRUE.

Return value

\Drupal\Core\Access\AccessResultAllowed isAllowed() will be TRUE.

118 calls to AccessResult::allowed()
AccessCheck::menuLocalAction8 in core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php
AccessGroupAndTest::testGroups in core/modules/block_content/tests/src/Unit/Access/AccessGroupAndTest.php
@covers \Drupal\block_content\Access\AccessGroupAnd
AccessManager::check in core/lib/Drupal/Core/Access/AccessManager.php
AccessManagerTest::providerTestCheckConjunctions in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Provides data for the conjunction test.
AccessManagerTest::testCheck in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests \Drupal\Core\Access\AccessManager::check().

... See full list

File

core/lib/Drupal/Core/Access/AccessResult.php, line 50

Class

AccessResult
Value object for passing an access result with cacheability metadata.

Namespace

Drupal\Core\Access

Code

public static function allowed() {
  return new AccessResultAllowed();
}