You are here

protected function Select::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides OptionsBase::defineDefaultProperties

3 calls to Select::defineDefaultProperties()
WebformImageSelect::defineDefaultProperties in modules/webform_image_select/src/Plugin/WebformElement/WebformImageSelect.php
Define an element's default properties.
WebformOptionsCustom::defineDefaultProperties in modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php
Define an element's default properties.
WebformTermSelect::defineDefaultProperties in src/Plugin/WebformElement/WebformTermSelect.php
Define an element's default properties.
2 methods override Select::defineDefaultProperties()
WebformImageSelect::defineDefaultProperties in modules/webform_image_select/src/Plugin/WebformElement/WebformImageSelect.php
Define an element's default properties.
WebformOptionsCustom::defineDefaultProperties in modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php
Define an element's default properties.

File

src/Plugin/WebformElement/Select.php, line 25

Class

Select
Provides a 'select' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = [
    // Options settings.
    'multiple' => FALSE,
    'multiple_error' => '',
    'empty_option' => '',
    'empty_value' => '',
    'sort_options' => FALSE,
    'select2' => FALSE,
    'choices' => FALSE,
    'chosen' => FALSE,
    'placeholder' => '',
    'help_display' => '',
    'size' => '',
  ] + parent::defineDefaultProperties();
  return $properties;
}