AccessResult::neutral

public static AccessResult::neutral()

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

Return value

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

File

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

Class

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

Namespace

Drupal\Core\Access

Code

public static function neutral() {
  return new AccessResultNeutral();
}
doc_Drupal
2016-10-29 08:42:31
Comments
Leave a Comment

Please login to continue.