You are here

protected function Number::defineDefaultProperties in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/Number.php \Drupal\webform\Plugin\WebformElement\Number::defineDefaultProperties()

Define an element's default properties.

Return value

array An associative array contain an the element's default properties.

Overrides NumericBase::defineDefaultProperties

File

src/Plugin/WebformElement/Number.php, line 21

Class

Number
Provides a 'number' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    // Number settings.
    'min' => NULL,
    'max' => NULL,
    'step' => NULL,
  ] + parent::defineDefaultProperties() + $this
    ->defineDefaultMultipleProperties();
}