protected function Container::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/Container.php \Drupal\webform\Plugin\WebformElement\Container::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides ContainerBase::defineDefaultProperties
1 call to Container::defineDefaultProperties()
- WebformFlexbox::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformFlexbox.php - Define an element's default properties.
1 method overrides Container::defineDefaultProperties()
- WebformFlexbox::defineDefaultProperties in src/
Plugin/ WebformElement/ WebformFlexbox.php - Define an element's default properties.
File
- src/
Plugin/ WebformElement/ Container.php, line 22
Class
- Container
- Provides a 'container' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
return [
// Attributes.
'attributes' => [],
// Randomize.
'randomize' => FALSE,
// Flexbox.
'flex' => 1,
// Conditional logic.
'states' => [],
'states_clear' => TRUE,
// Format.
'format' => $this
->getItemDefaultFormat(),
'format_html' => '',
'format_text' => '',
'format_attributes' => [],
];
}