public function YamlFormRating::getDefaultProperties in YAML Form 8
Only a few elements don't inherit these default properties.
Overrides Range::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/ YamlFormRating.php, line 23
Class
- YamlFormRating
- Provides a 'rating' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
public function getDefaultProperties() {
$properties = parent::getDefaultProperties();
unset($properties['range__output'], $properties['range__output_prefix'], $properties['range__output_suffix']);
$properties += [
// General settings.
'default_value' => 0,
// Rating settings.
'star_size' => 'medium',
'reset' => FALSE,
];
return $properties;
}