You are here

public static function WebformOptionsInterface::getElementOptions in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\webform

Code

public static function getElementOptions(array &$element, $property_name = '#options');