InputfieldTextTags::getTagLabel()

Get label for given tag

  • Returns given tag if it has no label.
  • Returns blank string if given tag is not in list and user entered tags are not allowed.

Usage

// basic usage
$mixed = $inputfieldTextTags->getTagLabel(string $tag);

// usage with all arguments
$mixed = $inputfieldTextTags->getTagLabel(string $tag, $language = null);

Arguments

NameType(s)Description
$tagstring
$language (optional)Language int string null

Return value

mixed


InputfieldTextTags methods and properties

API reference based on ProcessWire core version 3.0.253