drupal/cacheable_types

1.0.4 2023-08-02 20:49 UTC

This package is auto-updated.

Last update: 2024-04-10 21:07:43 UTC


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)