You are here

protected function WebformSection::defineDefaultProperties in Webform 8.5

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

Code

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();
}