Get predefined translated label by key for labels shared among admin themes
Available since version 3.0.162.
Usage
// basic usage
$string = $adminTheme->getLabel(string $key);
// usage with all arguments
$string = $adminTheme->getLabel(string $key, string $val = '');
Arguments
Name | Type(s) | Description |
---|---|---|
key | string | |
val (optional) | string | Value to return if label not available |
Return value
string
AdminTheme methods and properties
API reference based on ProcessWire core version 3.0.236