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

Compile CSS with CSSCrush. More...

Public Member Functions

 __construct (Config $config, PluginHooksService $hooks)
 Constructor. More...
 
 compile ($css, array $options=[])
 Compile CSS. More...
 

Protected Member Functions

 getDefaultVars ()
 Default Elgg theme variables. More...
 

Protected Attributes

 $config
 
 $hooks
 

Detailed Description

Compile CSS with CSSCrush.

Definition at line 15 of file CssCompiler.php.

Constructor & Destructor Documentation

Elgg\Assets\CssCompiler::__construct ( Config  $config,
PluginHooksService  $hooks 
)

Constructor.

Parameters
Config$configConfig
PluginHooksService$hooksHooks service

Definition at line 33 of file CssCompiler.php.

Member Function Documentation

Elgg\Assets\CssCompiler::compile (   $css,
array  $options = [] 
)

Compile CSS.

Parameters
string$cssCSS string
array$optionsCssCrush options
Returns
string

Definition at line 46 of file CssCompiler.php.

Elgg\Assets\CssCompiler::getDefaultVars ( )
protected

Default Elgg theme variables.

Returns
array

Definition at line 71 of file CssCompiler.php.

Member Data Documentation

Elgg\Assets\CssCompiler::$config
protected

Definition at line 20 of file CssCompiler.php.

Elgg\Assets\CssCompiler::$hooks
protected

Definition at line 25 of file CssCompiler.php.


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