Elgg  Version master
Public Member Functions | Protected Member Functions | Protected Attributes | 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 (bool $load_config_vars=true)
 Fetches a combined set of CSS variables and their value. More...
 

Protected Member Functions

 loadPluginVars ()
 Loads the plugin theme variables. More...
 

Protected Attributes

array $css_variables = null
 

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 23 of file CssCompiler.php.

Member Function Documentation

◆ getCssVars()

Elgg\Assets\CssCompiler::getCssVars ( bool  $load_config_vars = true)

Fetches a combined set of CSS variables and their value.

Parameters
bool$load_config_varsdetermines if config values are being loaded
Returns
array

Definition at line 33 of file CssCompiler.php.

◆ loadPluginVars()

Elgg\Assets\CssCompiler::loadPluginVars ( )
protected

Loads the plugin theme variables.

Returns
void

Definition at line 68 of file CssCompiler.php.

Member Data Documentation

◆ $css_variables

array Elgg\Assets\CssCompiler::$css_variables = null
protected

Definition at line 16 of file CssCompiler.php.


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