You are here

public function YamlFormEntityOptionsTrait::getDefaultProperties in YAML Form 8

File

src/Plugin/YamlFormElement/YamlFormEntityOptionsTrait.php, line 16

Class

YamlFormEntityOptionsTrait
Provides an 'entity_reference' with options trait.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  $properties = parent::getDefaultProperties() + [
    // Entity reference settings.
    'target_type' => '',
    'selection_handler' => '',
    'selection_settings' => [],
  ];
  unset($properties['options']);
  return $properties;
}