You are here

public function Number::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

File

src/Plugin/YamlFormElement/Number.php, line 20

Class

Number
Provides a 'number' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    // Number settings.
    'min' => '',
    'max' => '',
    'step' => '',
  ];
}