You are here

protected function WebformCustomComposite::defineDefaultProperties in Webform 8.5

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

Define an element's default properties.

Return value

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

Overrides WebformCompositeBase::defineDefaultProperties

File

src/Plugin/WebformElement/WebformCustomComposite.php, line 27

Class

WebformCustomComposite
Provides a custom composite element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = [
    'title_display' => '',
    'element' => [],
  ] + $this
    ->defineDefaultMultipleProperties() + parent::defineDefaultProperties();
  unset($properties['flexbox']);
  return $properties;
}