W3cubDocs

/Drupal 8

public function AccessResult::isAllowed

public AccessResult::isAllowed()

Overrides AccessResultInterface::isAllowed

See also

\Drupal\Core\Access\AccessResultAllowed

File

core/lib/Drupal/Core/Access/AccessResult.php, line 153

Class

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

Namespace

Drupal\Core\Access

Code

public function isAllowed() {
  return FALSE;
}

© 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!AccessResult.php/function/AccessResult::isAllowed/8.1.x