protected function WebformCustomComposite::defineDefaultMultipleProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 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\WebformElementCode
protected function defineDefaultMultipleProperties() {
$properties = [
'multiple' => TRUE,
'multiple__header' => TRUE,
] + parent::defineDefaultMultipleProperties();
return $properties;
}