Documentation

Resolvers
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Methods

fallback()  : array<string|int, mixed>|string
The base handler falls back to loading files from the main application (rather than using the theme).
simple()  : array<string|int, mixed>|string
In the simple format, the CSS file is loaded from the extension's "css" subdir; if it's missing, then it searches the parents.

Methods

fallback()

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

public static fallback(Themes $themes, string $themeKey, string $cssExt, string $cssFile) : array<string|int, mixed>|string
Parameters
$themes : Themes

The theming subsystem.

$themeKey : string

The active/desired theme key.

$cssExt : string

The extension for which we want a themed CSS file (e.g. "civicrm").

$cssFile : string

File name (e.g. "css/bootstrap.css").

Return values
array<string|int, mixed>|string

List of CSS URLs, or PASSTHRU.

simple()

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

public static simple(Themes $themes, string $themeKey, string $cssExt, string $cssFile) : array<string|int, mixed>|string

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.

$themeKey : string

The active/desired theme key.

$cssExt : string

The extension for which we want a themed CSS file (e.g. "civicrm").

$cssFile : string

File name (e.g. "css/bootstrap.css").

Return values
array<string|int, mixed>|string

List of CSS URLs, or PASSTHRU.


        
On this page

Search results