You are here

public static function AccessResult::neutral in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::neutral()

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

Return value

\Drupal\Core\Access\AccessResult isNeutral() will be TRUE.

60 calls to AccessResult::neutral()
AccessManager::check in core/lib/Drupal/Core/Access/AccessManager.php
Checks a route against applicable access check services.
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().
AccessResult::allowedIf in core/lib/Drupal/Core/Access/AccessResult.php
Creates an allowed or neutral access result.
AccessResult::andIf in core/lib/Drupal/Core/Access/AccessResult.php
Combine this access result with another using AND.

... See full list

File

core/lib/Drupal/Core/Access/AccessResult.php, line 41
Contains \Drupal\Core\Access\AccessResult.

Class

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

Namespace

Drupal\Core\Access

Code

public static function neutral() {
  return new AccessResultNeutral();
}