You are here

protected function BooleanBase::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides WebformElementBase::defineDefaultProperties

1 call to BooleanBase::defineDefaultProperties()
Checkbox::defineDefaultProperties in src/Plugin/WebformElement/Checkbox.php
Define an element's default properties.
1 method overrides BooleanBase::defineDefaultProperties()
Checkbox::defineDefaultProperties in src/Plugin/WebformElement/Checkbox.php
Define an element's default properties.

File

src/Plugin/WebformElement/BooleanBase.php, line 18

Class

BooleanBase
Provides a base 'boolean' class.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    'default_value' => FALSE,
    'return_value' => '',
  ] + parent::defineDefaultProperties();
}