Return page tab label for current language (or specified language if provided)
Usage
// basic usage
$string = $template->getTabLabel(string $tab);
// usage with all arguments
$string = $template->getTabLabel(string $tab, $language = null);
Arguments
Name | Type(s) | Description |
---|---|---|
tab | string | Which tab? 'content' or 'children' |
language (optional) | Page, Language | Optional, if not used then user's current language is used |
Return value
string
Returns blank if default tab label not overridden
Template methods and properties
API reference based on ProcessWire core version 3.0.236