drupal / cacheable_types
1.0.4
2023-08-02 22:49 UTC
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- drupal/core: ^9.4
README
Immutable classes and builders that make doing it wrong harder.
CacheableBool
# Never forget cacheability.
CacheableBool::create($bool, $cacheability)
$cacheableBool->value()
assert($cacheableBool instanceof CacheableDependencyInterface)
CacheableBool::ifAccessResultAllowed($accessResult)
CacheableBool::ifAccessResultNotForbidden($accessResult)
$cacheableBool->toAllowedOrNeutral()
$cacheableBool->toNeutralOrForbidden()
$cacheableBool->toAllowedOrForbidden()
CacheableBool::not()
CacheableBool::and(...$cacheableBoolItems)
CacheableBool::or(...$cacheableBoolItems)