public function YamlFormAutocomplete::getDefaultProperties in YAML Form 8
Only a few elements don't inherit these default properties.
Overrides TextField::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/ YamlFormAutocomplete.php, line 22
Class
- YamlFormAutocomplete
- Provides a 'autocomplete' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getDefaultProperties() {
return parent::getDefaultProperties() + [
// Autocomplete settings.
'autocomplete_existing' => FALSE,
'autocomplete_items' => [],
'autocomplete_limit' => 10,
'autocomplete_match' => 3,
'autocomplete_match_operator' => 'CONTAINS',
];
}