You are here

protected function ContainerBase::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides WebformElementBase::defineDefaultProperties

3 calls to ContainerBase::defineDefaultProperties()
Details::defineDefaultProperties in src/Plugin/WebformElement/Details.php
Define an element's default properties.
Fieldset::defineDefaultProperties in src/Plugin/WebformElement/Fieldset.php
Define an element's default properties.
WebformSection::defineDefaultProperties in src/Plugin/WebformElement/WebformSection.php
Define an element's default properties.
6 methods override ContainerBase::defineDefaultProperties()
Container::defineDefaultProperties in src/Plugin/WebformElement/Container.php
Define an element's default properties.
Details::defineDefaultProperties in src/Plugin/WebformElement/Details.php
Define an element's default properties.
Fieldset::defineDefaultProperties in src/Plugin/WebformElement/Fieldset.php
Define an element's default properties.
WebformActions::defineDefaultProperties in src/Plugin/WebformElement/WebformActions.php
Define an element's default properties.
WebformCard::defineDefaultProperties in modules/webform_cards/src/Plugin/WebformElement/WebformCard.php
Define an element's default properties.

... See full list

File

src/Plugin/WebformElement/ContainerBase.php, line 20

Class

ContainerBase
Provides a base 'container' class.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    'title' => '',
    // Form validation.
    'required' => FALSE,
    // Randomize.
    'randomize' => FALSE,
    // Attributes.
    'attributes' => [],
    // Format.
    'format' => $this
      ->getItemDefaultFormat(),
    'format_html' => '',
    'format_text' => '',
    'format_attributes' => [],
  ] + $this
    ->defineDefaultBaseProperties();
}