Choice_Element_Type_Interface::get_choices( awsmug\Torro_Forms\DB_Objects\Elements\Element $element )

Returns the available choices.

Description

Parameters

$element

(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) Element to get choices for.

Return

(array) Associative array of <code>$field => $choices</code> pairs, with the main element field having the key '_main'.

Source

File: src/db-objects/elements/element-types/choice-element-type-interface.php

	public function get_choices( $element );

Changelog

Changelog
Version Description
1.0.0 Introduced.