public static function WebformOptionsInterface::getElementOptions in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformOptionsInterface.php \Drupal\webform\WebformOptionsInterface::getElementOptions()
Get webform element options.
Parameters
array $element: A webform element.
string $property_name: The element property containing the options. Defaults to #options, for webform_likert elements it is #answers.
Return value
array An associative array of options.
1 method overrides WebformOptionsInterface::getElementOptions()
- WebformOptions::getElementOptions in src/
Entity/ WebformOptions.php - Get webform element options.
File
- src/
WebformOptionsInterface.php, line 58
Class
- WebformOptionsInterface
- Provides an interface defining a webform options entity.
Namespace
Drupal\webformCode
public static function getElementOptions(array &$element, $property_name = '#options');