W3cubDocs

/Drupal 8

public function AccessResultInterface::isAllowed

public AccessResultInterface::isAllowed()

Checks whether this access result indicates access is explicitly allowed.

Return value

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

File

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

Class

AccessResultInterface
Interface for access result value objects.

Namespace

Drupal\Core\Access

Code

public function isAllowed();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Access!AccessResultInterface.php/function/AccessResultInterface::isAllowed/8.1.x