Template::setLabel()
Set template label, optionally for a language
Available since version 3.0.263.
Usage
// basic usage
$template->setLabel(string $label);
// usage with all arguments
$template->setLabel(string $label, $language = null);Arguments
| Name | Type(s) | Description |
|---|---|---|
$label | string | |
$language (optional) | Language string int null | If not specified, default language is used |
Return value
$thisObject instance it was called from (method supports fluent interface).
Template methods and properties
API reference based on ProcessWire core version 3.0.264