AccessResult::allowed

public static AccessResult::allowed()

Creates an AccessResultInterface object with isAllowed() === TRUE.

Return value

\Drupal\Core\Access\AccessResult isAllowed() will be TRUE.

File

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

Class

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

Namespace

Drupal\Core\Access

Code

public static function allowed() {
  return new AccessResultAllowed();
}
doc_Drupal
2016-10-29 08:42:28
Comments
Leave a Comment

Please login to continue.