DisplayerCacheService
extends Service
in package
Table of Contents
- DISPLAYER_CACHE_TAG = 'themes::displayers'
- $cache : CacheInterface
- $cacheEnabled : bool
- flush() : mixed
- Flush all displayer cache
- getCache() : string|null
- Get a displayer cache
- startCaching() : mixed
- Start displayer caching
- stopCaching() : mixed
- Stop displayer caching
- blockCacheService() : BlockCacheService
- Get the block cache service
- blockProviderService() : BlockProvidersService
- Get the block providers service
- blocksService() : BlockService
- Get the blocks service
- buildKey() : string
- Build a key to cache a displayer
- displayService() : DisplayService
- Get the display service
- eagerLoadingService() : EagerLoadingService
- Get the eager loading service
- fieldDisplayersService() : FieldDisplayerService
- Get the field displayers service
- fieldsService() : FieldsService
- Get the fields service
- fileDisplayerService() : FileDisplayerService
- Get the file displayers service
- getContentBlock() : BlockInterface
- Get the content block
- groupsService() : GroupsService
- Get the groups service
- layoutService() : LayoutService
- Get the layout service
- matrixService() : MatrixService
- Get the matrix service
- setCache() : mixed
- Set a displayer cache
- shouldCache() : bool
- Should a displayer be cached
- themesRegistry() : ThemesRegistry
- Get the themes registry
- triggerEvent() : mixed
- Triggers an event
- viewModesService() : ViewModeService
- Get the view mode service
- viewService() : ViewService
- Get the view service
Constants
DISPLAYER_CACHE_TAG
public
mixed
DISPLAYER_CACHE_TAG
= 'themes::displayers'
Properties
$cache
public
CacheInterface
$cache
$cacheEnabled
public
bool
$cacheEnabled
Methods
flush()
Flush all displayer cache
public
flush() : mixed
Return values
mixed —getCache()
Get a displayer cache
public
getCache(DisplayerInterface $displayer, mixed $cachePrefix) : string|null
Parameters
- $displayer : DisplayerInterface
- $cachePrefix : mixed
Return values
string|null —startCaching()
Start displayer caching
public
startCaching(DisplayerInterface $displayer) : mixed
Parameters
- $displayer : DisplayerInterface
Return values
mixed —stopCaching()
Stop displayer caching
public
stopCaching(DisplayerInterface $displayer, string $data, mixed $cachePrefix) : mixed
Parameters
- $displayer : DisplayerInterface
- $data : string
- $cachePrefix : mixed
Return values
mixed —blockCacheService()
Get the block cache service
protected
blockCacheService() : BlockCacheService
Return values
BlockCacheService —blockProviderService()
Get the block providers service
protected
blockProviderService() : BlockProvidersService
Return values
BlockProvidersService —blocksService()
Get the blocks service
protected
blocksService() : BlockService
Return values
BlockService —buildKey()
Build a key to cache a displayer
protected
buildKey(DisplayerInterface $displayer, mixed $cachePrefix) : string
Parameters
- $displayer : DisplayerInterface
- $cachePrefix : mixed
Return values
string —displayService()
Get the display service
protected
displayService() : DisplayService
Return values
DisplayService —eagerLoadingService()
Get the eager loading service
protected
eagerLoadingService() : EagerLoadingService
Return values
EagerLoadingService —fieldDisplayersService()
Get the field displayers service
protected
fieldDisplayersService() : FieldDisplayerService
Return values
FieldDisplayerService —fieldsService()
Get the fields service
protected
fieldsService() : FieldsService
Return values
FieldsService —fileDisplayerService()
Get the file displayers service
protected
fileDisplayerService() : FileDisplayerService
Return values
FileDisplayerService —getContentBlock()
Get the content block
protected
getContentBlock() : BlockInterface
Return values
BlockInterface —groupsService()
Get the groups service
protected
groupsService() : GroupsService
Return values
GroupsService —layoutService()
Get the layout service
protected
layoutService() : LayoutService
Return values
LayoutService —matrixService()
Get the matrix service
protected
matrixService() : MatrixService
Return values
MatrixService —setCache()
Set a displayer cache
protected
setCache(DisplayerInterface $displayer, string $data, TagDependency $dep, mixed $cachePrefix) : mixed
Parameters
- $displayer : DisplayerInterface
- $data : string
- $dep : TagDependency
- $cachePrefix : mixed
Return values
mixed —shouldCache()
Should a displayer be cached
protected
shouldCache(DisplayerInterface $displayer) : bool
Parameters
- $displayer : DisplayerInterface
Return values
bool —themesRegistry()
Get the themes registry
protected
themesRegistry() : ThemesRegistry
Return values
ThemesRegistry —triggerEvent()
Triggers an event
protected
triggerEvent(string $type, Event $event) : mixed
Parameters
- $type : string
- $event : Event
Return values
mixed —viewModesService()
Get the view mode service
protected
viewModesService() : ViewModeService
Return values
ViewModeService —viewService()
Get the view service
protected
viewService() : ViewService