You are here

protected function WebformSection::defineDefaultProperties in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    // Description/Help.
    'help' => '',
    'help_title' => '',
    'description' => '',
    'more' => '',
    'more_title' => '',
    // Title.
    'title_tag' => $this->configFactory
      ->get('webform.settings')
      ->get('element.default_section_title_tag'),
    'title_display' => '',
    'title_attributes' => [],
    'description_display' => '',
    'help_display' => '',
  ] + parent::defineDefaultProperties();
}