You are here

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

2 calls to NumericBase::getDefaultProperties()
Number::getDefaultProperties in src/Plugin/YamlFormElement/Number.php
Only a few elements don't inherit these default properties.
Range::getDefaultProperties in src/Plugin/YamlFormElement/Range.php
Only a few elements don't inherit these default properties.
2 methods override NumericBase::getDefaultProperties()
Number::getDefaultProperties in src/Plugin/YamlFormElement/Number.php
Only a few elements don't inherit these default properties.
Range::getDefaultProperties in src/Plugin/YamlFormElement/Range.php
Only a few elements don't inherit these default properties.

File

src/Plugin/YamlFormElement/NumericBase.php, line 17

Class

NumericBase
Provides a base 'numeric' class.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    // Form validation.
    'size' => '',
    'maxlength' => '',
    'placeholder' => '',
  ];
}