public function EntityAutocomplete::getDefaultProperties in YAML Form 8
Only a few elements don't inherit these default properties.
Overrides YamlFormElementBase::getDefaultProperties
See also
\Drupal\yamlform\Plugin\YamlFormElement\Textarea
\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert
\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase
\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase
File
- src/
Plugin/ YamlFormElement/ EntityAutocomplete.php, line 26
Class
- EntityAutocomplete
- Provides a 'entity_autocomplete' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getDefaultProperties() {
return parent::getDefaultProperties() + [
// Entity reference settings.
'target_type' => '',
'selection_handler' => 'default',
'selection_settings' => [],
'tags' => FALSE,
];
}