InputfieldTextTags::setTagsList()

Set all selectable tags and labels, optionally for specific language

Usage

// basic usage
$self = $inputfieldTextTags->setTagsList($tags);

// usage with all arguments
$self = $inputfieldTextTags->setTagsList($tags, $language = null);

Arguments

NameType(s)Description
$tagsarray string

Array of [ 'tag' => 'label', 'tag2' => 'label2' ] or newline string of "tag=label\ntag2=label2\n..."

$language (optional)Language int string null

Return value

self


InputfieldTextTags methods and properties

API reference based on ProcessWire core version 3.0.252