You are here

public function WebformEntityOptionsTrait::getElementSelectorSourceValues in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElement/WebformEntityOptionsTrait.php \Drupal\webform\Plugin\WebformElement\WebformEntityOptionsTrait::getElementSelectorSourceValues()

File

src/Plugin/WebformElement/WebformEntityOptionsTrait.php, line 69

Class

WebformEntityOptionsTrait
Provides an 'entity_reference' with options trait.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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