You are here

public static function WebformCompositeBase::initializeCompositeElements in Webform 6.x

Same name in this branch
  1. 6.x src/Element/WebformCompositeBase.php \Drupal\webform\Element\WebformCompositeBase::initializeCompositeElements()
  2. 6.x src/Plugin/WebformElement/WebformCompositeBase.php \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::initializeCompositeElements()
Same name and namespace in other branches
  1. 8.5 src/Element/WebformCompositeBase.php \Drupal\webform\Element\WebformCompositeBase::initializeCompositeElements()

Initialize a composite's elements.

Parameters

array $element: A render array for the current element.

Return value

array A renderable array of webform elements, containing the base properties for the composite's webform elements.

Overrides WebformCompositeInterface::initializeCompositeElements

1 call to WebformCompositeBase::initializeCompositeElements()
WebformCompositeBase::processWebformComposite in src/Element/WebformCompositeBase.php
Processes a composite webform element.

File

src/Element/WebformCompositeBase.php, line 208

Class

WebformCompositeBase
Provides an base composite webform element.

Namespace

Drupal\webform\Element

Code

public static function initializeCompositeElements(array &$element) {
  $composite_elements = static::getCompositeElements($element);
  static::initializeCompositeElementsRecursive($element, $composite_elements);
  return $composite_elements;
}