You are here

protected function WebformFlexbox::defineDefaultProperties in Webform 8.5

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

Define an element's default properties.

Return value

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

Overrides Container::defineDefaultProperties

File

src/Plugin/WebformElement/WebformFlexbox.php, line 25

Class

WebformFlexbox
Provides a 'flexbox' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    // Flexbox.
    'align_items' => 'flex-start',
  ] + parent::defineDefaultProperties();
}