Elgg  Version master
Public Member Functions | Protected Member Functions | List of all members
Elgg\Assets\CssCompiler Class Reference

Gives access to CSS variables in the system. More...

Public Member Functions

 __construct (protected EventsService $events)
 Constructor. More...
 
 getCssVars (array $compiler_options=[], bool $load_config_vars=true)
 Fetches a combined set of CSS variables and their value. More...
 

Protected Member Functions

 getCoreVars ()
 Default Elgg theme variables. More...
 
 getPluginVars ()
 Plugin theme variables. More...
 

Detailed Description

Gives access to CSS variables in the system.

Definition at line 14 of file CssCompiler.php.

Constructor & Destructor Documentation

◆ __construct()

Elgg\Assets\CssCompiler::__construct ( protected EventsService  $events)

Constructor.

Parameters
EventsService$eventsEvents service

Definition at line 21 of file CssCompiler.php.

Member Function Documentation

◆ getCoreVars()

Elgg\Assets\CssCompiler::getCoreVars ( )
protected

Default Elgg theme variables.

Returns
array

Definition at line 51 of file CssCompiler.php.

◆ getCssVars()

Elgg\Assets\CssCompiler::getCssVars ( array  $compiler_options = [],
bool  $load_config_vars = true 
)

Fetches a combined set of CSS variables and their value.

Parameters
array$compiler_optionscompiler arguments with potential custom variables
bool$load_config_vars(internal) determines if config values are being loaded
Returns
array

Definition at line 32 of file CssCompiler.php.

◆ getPluginVars()

Elgg\Assets\CssCompiler::getPluginVars ( )
protected

Plugin theme variables.

Returns
array

Definition at line 61 of file CssCompiler.php.


The documentation for this class was generated from the following file: