ScssService
extends Service
in package
Table of Contents
- CSS_DEST_FOLDER = '@storage/runtime/scss/dest'
- CSS_SRC_FOLDER = '@storage/runtime/scss/src'
- DEST_FILE = 'compiled.css'
- clearCaches() : mixed
- Clear all scss and css files
- compileInlineFile() : mixed
- Compile a scss file called in a template, identified by a hash then registers the css on the view
- compileInlineScss() : mixed
- Compile some scss defined in a template, identified by a hash then registers the css on the view
- 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
- getDestFile() : string
- Get a destination file path identified by a hash
- getSrcFile() : string
- Get a source file path identified by a hash
- groupsService() : GroupsService
- Get the groups service
- layoutService() : LayoutService
- Get the layout service
- matrixService() : MatrixService
- Get the matrix service
- registerInlineCssFile() : mixed
- Register a css file on the view
- 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
CSS_DEST_FOLDER
public
mixed
CSS_DEST_FOLDER
= '@storage/runtime/scss/dest'
CSS_SRC_FOLDER
public
mixed
CSS_SRC_FOLDER
= '@storage/runtime/scss/src'
DEST_FILE
public
mixed
DEST_FILE
= 'compiled.css'
Methods
clearCaches()
Clear all scss and css files
public
clearCaches() : mixed
Return values
mixed —compileInlineFile()
Compile a scss file called in a template, identified by a hash then registers the css on the view
public
compileInlineFile(string $path, string $hash, ThemeInterface $theme, string $template[, array<string|int, mixed> $options = [] ][, bool $force = false ]) : mixed
Parameters
- $path : string
- $hash : string
- $theme : ThemeInterface
- $template : string
- $options : array<string|int, mixed> = []
- $force : bool = false
Return values
mixed —compileInlineScss()
Compile some scss defined in a template, identified by a hash then registers the css on the view
public
compileInlineScss(string $scss, string $hash, ThemeInterface $theme, string $template[, array<string|int, mixed> $options = [] ][, bool $force = false ]) : mixed
Parameters
- $scss : string
- $hash : string
- $theme : ThemeInterface
- $template : string
- $options : array<string|int, mixed> = []
- $force : bool = false
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 —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 —getDestFile()
Get a destination file path identified by a hash
protected
getDestFile(string $hash) : string
Parameters
- $hash : string
Return values
string —getSrcFile()
Get a source file path identified by a hash
protected
getSrcFile(string $hash) : string
Parameters
- $hash : string
Return values
string —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 —registerInlineCssFile()
Register a css file on the view
protected
registerInlineCssFile(string $cssFile) : mixed
Parameters
- $cssFile : string
Return values
mixed —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