public static function YamlFormOptionsInterface::getElementOptions in YAML Form 8
Get form element options.
Parameters
array $element: A form element.
string $property_name: The element property containing the options. Defaults to #options, for yamlform_likert elements it is #answers.
Return value
array An associative array of options.
1 method overrides YamlFormOptionsInterface::getElementOptions()
- YamlFormOptions::getElementOptions in src/
Entity/ YamlFormOptions.php - Get form element options.
File
- src/
YamlFormOptionsInterface.php, line 40
Class
- YamlFormOptionsInterface
- Provides an interface defining a form options entity.
Namespace
Drupal\yamlformCode
public static function getElementOptions(array $element, $property_name = '#options');