interface PickerInterface (View source)

Methods

string
getDisplayName(array $options)

Get the display name of this picker (to be used in the SELECT html element).

int
getHeight()

Get the height of this picker (in pixels).

string
generate(string $pickerKey, array $options, mixed|null $selectedValue = null)

Generate the HTML for the picker.

decode(array $data, string $pickerKey, array $options, ArrayAccess $errors = null, string|null $fieldDisplayName = null)

Decode the value received via post.

Details

string getDisplayName(array $options)

Get the display name of this picker (to be used in the SELECT html element).

Parameters

array $options

Return Value

string

int getHeight()

Get the height of this picker (in pixels).

Return Value

int

string generate(string $pickerKey, array $options, mixed|null $selectedValue = null)

Generate the HTML for the picker.

Parameters

string $pickerKey
array $options
mixed|null $selectedValue

Return Value

string

decode(array $data, string $pickerKey, array $options, ArrayAccess $errors = null, string|null $fieldDisplayName = null)

Decode the value received via post.

Parameters

array $data
string $pickerKey
array $options
ArrayAccess $errors
string|null $fieldDisplayName