class Resolvers

Methods

static array|string
simple(Themes $themes, string $themeKey, string $cssExt, string $cssFile)

In the simple format, the CSS file is loaded from the extension's "css" subdir; if it's missing, then it searches the parents.

static array|string
fallback(Themes $themes, string $themeKey, string $cssExt, string $cssFile)

The base handler falls back to loading files from the main application (rather than using the theme).

Details

at line 59
static array|string simple(Themes $themes, string $themeKey, string $cssExt, string $cssFile)

In the simple format, the CSS file is loaded from the extension's "css" subdir; if it's missing, then it searches the parents.

To use an alternate subdir, override "prefix".

Simple themes may use the "search_order" to assimilate content from other themes.

Parameters

Themes $themes The theming subsystem.
string $themeKey The active/desired theme key.
string $cssExt The extension for which we want a themed CSS file (e.g. "civicrm").
string $cssFile File name (e.g. "css/bootstrap.css").

Return Value

array|string List of CSS URLs, or PASSTHRU.

at line 92
static array|string fallback(Themes $themes, string $themeKey, string $cssExt, string $cssFile)

The base handler falls back to loading files from the main application (rather than using the theme).

Parameters

Themes $themes The theming subsystem.
string $themeKey The active/desired theme key.
string $cssExt The extension for which we want a themed CSS file (e.g. "civicrm").
string $cssFile File name (e.g. "css/bootstrap.css").

Return Value

array|string List of CSS URLs, or PASSTHRU.