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();
Please login to continue.