AccessResultAllowed::isAllowed

public AccessResultAllowed::isAllowed() Overrides AccessResult::isAllowed See also \Drupal\Core\Access\AccessResultAllowed File core/lib/Drupal/Core/Access/AccessResultAllowed.php, line 13 Class AccessResultAllowed Value object indicating an allowed access result, with cacheability metadata. Namespace Drupal\Core\Access Code public function isAllowed() { return TRUE; }

AccessResult::resetCacheContexts

public AccessResult::resetCacheContexts() Resets cache contexts (to the empty array). Return value $this File core/lib/Drupal/Core/Access/AccessResult.php, line 206 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public function resetCacheContexts() { $this->cacheContexts = []; return $this; }

AccessResult::setCacheMaxAge

public AccessResult::setCacheMaxAge($max_age) Sets the maximum age for which this access result may be cached. Parameters int $max_age: The maximum time in seconds that this access result may be cached. Return value $this File core/lib/Drupal/Core/Access/AccessResult.php, line 229 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public function setCacheMaxAge($max_age) { $this->cacheMaxAge = $max_age; re

AccessResult::orIf

public AccessResult::orIf(AccessResultInterface $other) Combine this access result with another using OR. When OR-ing two access results, the result is: isForbidden() in either ⇒ isForbidden() otherwise if isAllowed() in either ⇒ isAllowed() otherwise both must be isNeutral() ⇒ isNeutral() Truth table: |A N F --+----- A |A A F N |A N F F |F F F Parameters \Drupal\Core\Access\AccessResultInterface $other: The other access result to OR this one with. Return value static Overrides AccessRes

AccessResult::resetCacheTags

public AccessResult::resetCacheTags() Resets cache tags (to the empty array). Return value $this File core/lib/Drupal/Core/Access/AccessResult.php, line 216 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public function resetCacheTags() { $this->cacheTags = []; return $this; }

AccessResult::inheritCacheability

public AccessResult::inheritCacheability(AccessResultInterface $other) Inherits the cacheability of the other access result, if any. inheritCacheability() differs from addCacheableDependency() in how it handles max-age, because it is designed to inherit the cacheability of the second operand in the andIf() and orIf() operations. There, the situation "allowed, max-age=0 OR allowed, max-age=1000" needs to yield max-age 1000 as the end result. Parameters \Drupal\Core\Access\AccessResultInterface

AccessResult::getCacheTags

public AccessResult::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides RefinableCacheableDependencyTrait::getCacheTags File core/lib/Drupal/Core/Access/AccessResult.php, line 190 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public function getCacheTags() { return $this->cache

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(); }

AccessResult::isAllowed

public AccessResult::isAllowed() Overrides AccessResultInterface::isAllowed See also \Drupal\Core\Access\AccessResultAllowed File core/lib/Drupal/Core/Access/AccessResult.php, line 158 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public function isAllowed() { return FALSE; }

AccessResult::isNeutral

public AccessResult::isNeutral() Overrides AccessResultInterface::isNeutral See also \Drupal\Core\Access\AccessResultNeutral File core/lib/Drupal/Core/Access/AccessResult.php, line 176 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public function isNeutral() { return FALSE; }