InputfieldSelect::getOptionAttributesString()

Get an attributes string intended for the <option> element

Usage

$string = $inputfieldSelect->getOptionAttributesString($key);

Arguments

NameType(s)Description
$keystring array

If given an array, it will be assumed to the attributes you want rendered. If given a value for an existing option, then the attributes for that option will be rendered.

Return value

string


InputfieldSelect methods and properties

API reference based on ProcessWire core version 3.0.252