You are here

protected function WebformCustomComposite::defineDefaultMultipleProperties in Webform 8.5

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

Define default multiple properties used by most elements.

Return value

array An associative array containing default multiple properties.

Overrides WebformCompositeBase::defineDefaultMultipleProperties

2 calls to WebformCustomComposite::defineDefaultMultipleProperties()
WebformCustomComposite::defineDefaultProperties in src/Plugin/WebformElement/WebformCustomComposite.php
Define an element's default properties.
WebformCustomComposite::prepare in src/Plugin/WebformElement/WebformCustomComposite.php
Prepare an element to be rendered within a webform.

File

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

Class

WebformCustomComposite
Provides a custom composite element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultMultipleProperties() {
  $properties = [
    'multiple' => TRUE,
    'multiple__header' => TRUE,
  ] + parent::defineDefaultMultipleProperties();
  return $properties;
}