AccessResultInterface::isForbidden

public AccessResultInterface::isForbidden()

Checks whether this access result indicates access is explicitly forbidden.

This is a kill switch — both orIf() and andIf() will result in isForbidden() if either results are isForbidden().

Return value

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

File

core/lib/Drupal/Core/Access/AccessResultInterface.php, line 40

Class

AccessResultInterface
Interface for access result value objects.

Namespace

Drupal\Core\Access

Code

public function isForbidden();
doc_Drupal
2016-10-29 08:42:35
Comments
Leave a Comment

Please login to continue.