AdminTheme::getClass() method

Return class for a given named item or blank if none available

Omit the first argument to return all classes in an array.

Usage

// basic usage
$string = $adminTheme->getClass();

// usage with all arguments
$string = $adminTheme->getClass(string $name = '', bool $getArray = false);

Arguments

NameType(s)Description
name (optional)string

Tag or item name, i.e. “input”, or omit to return all defined [tags=classes]

getArray (optional)bool

Specify true to return array of class name(s) rather than string (default=false). $name argument required.

Return value

string array

Returns string or array of class names, or array of all [tags=classes] or $tagName argument is empty.


AdminTheme methods and properties

API reference based on ProcessWire core version 3.0.248

Latest news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer