You are here

public function WebformEntityOptionsTrait::getExportDefaultOptions in Webform 8.5

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

File

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

Class

WebformEntityOptionsTrait
Provides an 'entity_reference' with options trait.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function getExportDefaultOptions() {
  return [
    'entity_reference_items' => [
      'id',
      'title',
      'url',
    ],
    'options_single_format' => 'compact',
    'options_multiple_format' => 'compact',
    'options_item_format' => 'label',
  ];
}