class AccessResultNeutral in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Access/AccessResultNeutral.php \Drupal\Core\Access\AccessResultNeutral
Value object indicating a neutral access result, with cacheability metadata.
Hierarchy
- class \Drupal\Core\Access\AccessResult implements AccessResultInterface, RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTrait
- class \Drupal\Core\Access\AccessResultNeutral
Expanded class hierarchy of AccessResultNeutral
1 file declares its use of AccessResultNeutral
- AccessResultTest.php in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - Contains \Drupal\Tests\Core\Access\AccessResultTest.
File
- core/
lib/ Drupal/ Core/ Access/ AccessResultNeutral.php, line 13 - Contains \Drupal\Core\Access\AccessResultNeutral.
Namespace
Drupal\Core\AccessView source
class AccessResultNeutral extends AccessResult {
/**
* {@inheritdoc}
*/
public function isNeutral() {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessResult:: |
public static | function | Creates an AccessResultInterface object with isAllowed() === TRUE. | |
AccessResult:: |
public static | function | Creates an allowed or neutral access result. | |
AccessResult:: |
public static | function | Creates an allowed access result if the permission is present, neutral otherwise. | |
AccessResult:: |
public static | function | Creates an allowed access result if the permissions are present, neutral otherwise. | |
AccessResult:: |
public | function |
Combine this access result with another using AND. Overrides AccessResultInterface:: |
|
AccessResult:: |
public | function | Convenience method, adds the "user.permissions" cache context. | |
AccessResult:: |
public | function | Convenience method, adds the "user" cache context. | |
AccessResult:: |
public | function | Convenience method, adds the configuration object's cache tag. | |
AccessResult:: |
public | function | Convenience method, adds the entity's cache tag. | |
AccessResult:: |
public static | function | Creates an AccessResultInterface object with isForbidden() === TRUE. | |
AccessResult:: |
public static | function | Creates a forbidden or neutral access result. | |
AccessResult:: |
public | function |
The cache contexts associated with this object. Overrides RefinableCacheableDependencyTrait:: |
|
AccessResult:: |
public | function |
The maximum age for which this object may be cached. Overrides RefinableCacheableDependencyTrait:: |
|
AccessResult:: |
public | function |
The cache tags associated with this object. Overrides RefinableCacheableDependencyTrait:: |
|
AccessResult:: |
public | function | Inherits the cacheability of the other access result, if any. | |
AccessResult:: |
public | function |
Overrides AccessResultInterface:: |
1 |
AccessResult:: |
public | function |
Overrides AccessResultInterface:: |
1 |
AccessResult:: |
public static | function | Creates an AccessResultInterface object with isNeutral() === TRUE. | |
AccessResult:: |
public | function |
Combine this access result with another using OR. Overrides AccessResultInterface:: |
|
AccessResult:: |
public | function | Resets cache contexts (to the empty array). | |
AccessResult:: |
public | function | Resets cache tags (to the empty array). | |
AccessResult:: |
public | function | Sets the maximum age for which this access result may be cached. | |
AccessResultNeutral:: |
public | function |
Checks whether this access result indicates access is not yet determined. Overrides AccessResult:: |
|
RefinableCacheableDependencyTrait:: |
protected | property | Cache contexts. | |
RefinableCacheableDependencyTrait:: |
protected | property | Cache max-age. | |
RefinableCacheableDependencyTrait:: |
protected | property | Cache tags. | |
RefinableCacheableDependencyTrait:: |
public | function | 1 | |
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function |