You are here

public function UncacheableTestAccessResult::isNeutral in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Access/AccessResultTest.php \Drupal\Tests\Core\Access\UncacheableTestAccessResult::isNeutral()
  2. 10 core/tests/Drupal/Tests/Core/Access/AccessResultTest.php \Drupal\Tests\Core\Access\UncacheableTestAccessResult::isNeutral()

Checks whether this access result indicates access is not yet determined.

Return value

bool When TRUE then isAllowed() and isForbidden() are FALSE.

Overrides AccessResultInterface::isNeutral

File

core/tests/Drupal/Tests/Core/Access/AccessResultTest.php, line 1038
Contains \Drupal\Tests\Core\Access\AccessResultTest.

Class

UncacheableTestAccessResult

Namespace

Drupal\Tests\Core\Access

Code

public function isNeutral() {
  return $this->value === 'NEUTRAL';
}