protected function WebformSection::defineDefaultProperties in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/WebformSection.php \Drupal\webform\Plugin\WebformElement\WebformSection::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides ContainerBase::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ WebformSection.php, line 23
Class
- WebformSection
- Provides a 'section' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
// Description/Help.
'help' => '',
'help_title' => '',
'description' => '',
'more' => '',
'more_title' => '',
// Title.
'title_tag' => \Drupal::config('webform.settings')
->get('element.default_section_title_tag'),
'title_display' => '',
'title_attributes' => [],
'description_display' => '',
'help_display' => '',
] + parent::defineDefaultProperties();
}