public function WebformEntityOptionsTrait::prepare in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformEntityOptionsTrait.php \Drupal\webform\Plugin\WebformElement\WebformEntityOptionsTrait::prepare()
File
- src/
Plugin/ WebformElement/ WebformEntityOptionsTrait.php, line 53
Class
- WebformEntityOptionsTrait
- Provides an 'entity_reference' with options trait.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
$this
->setOptions($element, [
'webform_submission' => $webform_submission,
]);
parent::prepare($element, $webform_submission);
}