You are here

public function Range::getDefaultProperties in YAML Form 8

Only a few elements don't inherit these default properties.

Overrides NumericBase::getDefaultProperties

See also

\Drupal\yamlform\Plugin\YamlFormElement\Textarea

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase

\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase

1 call to Range::getDefaultProperties()
YamlFormRating::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormRating.php
Only a few elements don't inherit these default properties.
1 method overrides Range::getDefaultProperties()
YamlFormRating::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormRating.php
Only a few elements don't inherit these default properties.

File

src/Plugin/YamlFormElement/Range.php, line 23

Class

Range
Provides a 'range' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    // Form validation.
    'min' => '',
    'max' => '',
    'step' => '',
    // Range settings.
    'range__output' => FALSE,
    'range__output_prefix' => '',
    'range__output_suffix' => '',
  ];
}