Craft Themes (3.x)

EagerLoadingService extends Service
in package

Table of Contents

EAGERLOAD_CACHE_TAG  = 'themes::eagerLoad'
$cache  : CacheInterface
$cacheEnabled  : bool
flushCache()  : mixed
Flush eager loading cache
getEagerLoadable()  : array<string|int, string>
Returns all the fields that can be eager loaded on a view mode and stores it in cache
blockCacheService()  : BlockCacheService
Get the block cache service
blockProviderService()  : BlockProvidersService
Get the block providers service
blocksService()  : BlockService
Get the blocks service
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
groupsService()  : GroupsService
Get the groups service
layoutService()  : LayoutService
Get the layout service
matrixService()  : MatrixService
Get the matrix service
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

Properties

Methods

flushCache()

Flush eager loading cache

public flushCache() : mixed
Return values
mixed

getEagerLoadable()

Returns all the fields that can be eager loaded on a view mode and stores it in cache

public getEagerLoadable(ViewModeInterface $viewMode) : array<string|int, string>
Parameters
$viewMode : ViewModeInterface
Return values
array<string|int, string>

matrixService()

Get the matrix service

protected matrixService() : MatrixService
Return values
MatrixService

triggerEvent()

Triggers an event

protected triggerEvent(string $type, Event $event) : mixed
Parameters
$type : string
$event : Event
Return values
mixed

Search results