You are here

public function WebformOptionsCustom::getElementSelectorSourceValues in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php \Drupal\webform_options_custom\Plugin\WebformElement\WebformOptionsCustom::getElementSelectorSourceValues()

Get an element's selectors source values.

Parameters

array $element: An element.

Return value

array An array of element selectors source values.

Overrides OptionsBase::getElementSelectorSourceValues

See also

\Drupal\webform\Entity\Webform::getElementsSelectorSourceValues

File

modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php, line 92

Class

WebformOptionsCustom
Provides a custom options element.

Namespace

Drupal\webform_options_custom\Plugin\WebformElement

Code

public function getElementSelectorSourceValues(array $element) {
  $this
    ->setOptions($element);
  return parent::getElementSelectorSourceValues($element);
}