Returns the available choices.
Description
See also
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
Version | Description |
---|---|
1.0.0 | Introduced. |