protected function Checkboxes::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/Checkboxes.php \Drupal\webform\Plugin\WebformElement\Checkboxes::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides OptionsBase::defineDefaultProperties
2 calls to Checkboxes::defineDefaultProperties()
- WebformCheckboxesOther::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformCheckboxesOther.php - Define an element's default properties.
- WebformTermCheckboxes::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformTermCheckboxes.php - Define an element's default properties.
1 method overrides Checkboxes::defineDefaultProperties()
- WebformCheckboxesOther::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformCheckboxesOther.php - Define an element's default properties.
File
- src/
Plugin/ WebformElement/ Checkboxes.php, line 27
Class
- Checkboxes
- Provides a 'checkboxes' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
'multiple' => TRUE,
'multiple_error' => '',
// Options settings.
'options_display' => 'one_column',
'options_description_display' => 'description',
'options__properties' => [],
// Options all and none.
'options_all' => FALSE,
'options_all_value' => 'all',
'options_all_text' => (string) $this
->t('All of the above'),
'options_none' => FALSE,
'options_none_value' => 'none',
'options_none_text' => (string) $this
->t('None of the above'),
// Wrapper.
'wrapper_type' => 'fieldset',
] + parent::defineDefaultProperties();
}