InputfieldSelect::getOptionAttributes()

Get an attributes array intended for an item (or for all items)

Usage

// basic usage
$array = $inputfieldSelect->getOptionAttributes();

// usage with all arguments
$array = $inputfieldSelect->getOptionAttributes($key = null);

Arguments

NameType(s)Description
$key (optional)string int null

Option value, or omit to return ALL option attributes indexed by option value

Return value

array

Array of attributes


InputfieldSelect methods and properties

API reference based on ProcessWire core version 3.0.251