class Theme (View source)

The Theme class.

Properties

$data Theme data.

Methods

__construct(string $themeJSON, array $composerInstalled)

The constructor.

string
__get(string $key)

Make theme data accessible as page properties.

string
getTooltip(string $key)

Return the tooltip for the requested variable name (key in the data array).

Details

__construct(string $themeJSON, array $composerInstalled)

The constructor.

Parameters

string $themeJSON
array $composerInstalled

string __get(string $key)

Make theme data accessible as page properties.

Parameters

string $key The property name

Return Value

string The returned value from the data array

string getTooltip(string $key)

Return the tooltip for the requested variable name (key in the data array).

Parameters

string $key

Return Value

string The tooltip text