InputfieldSelect::addOptionLabel() method

Add selectable option with label, optionally for specific language

Available since version 3.0.176.

Usage

// basic usage
$inputfieldSelect->addOptionLabel($value, string $label);

// usage with all arguments
$inputfieldSelect->addOptionLabel($value, string $label, $language = null);

Arguments

NameType(s)Description
valuestring, int
labelstring
language (optional)Language, null

Return value

$this

Object instance it was called from (method supports fluent interface).


InputfieldSelect methods and properties

API reference based on ProcessWire core version 3.0.244

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull