RegisterBlockCacheStrategies
extends Event
in package
Table of Contents
- $_strategies : array<string|int, BlockCacheStrategyInterface>
- add() : mixed
- Add a strategy, will replace strategies with same handle
- getStrategies() : array<string|int, BlockCacheStrategyInterface>
- Get all strategies
- init() : mixed
Properties
$_strategies
protected
array<string|int, BlockCacheStrategyInterface>
$_strategies
Methods
add()
Add a strategy, will replace strategies with same handle
public
add(BlockCacheStrategyInterface $strategy) : mixed
Parameters
- $strategy : BlockCacheStrategyInterface
Return values
mixed —getStrategies()
Get all strategies
public
getStrategies() : array<string|int, BlockCacheStrategyInterface>
Return values
array<string|int, BlockCacheStrategyInterface> —init()
public
init() : mixed