public function WebformComposite::initializeCompositeElements in Webform Composite Tools 8
Initialize and cache #webform_composite_elements.
Parameters
array $element: A composite element.
Overrides WebformCompositeBase::initializeCompositeElements
File
- src/
Plugin/ WebformElement/ WebformComposite.php, line 34
Class
- WebformComposite
- Provides an Global Composite base.
Namespace
Drupal\webform_composite\Plugin\WebformElementCode
public function initializeCompositeElements(array &$element) {
// @see \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::getInitializedCompositeElement
$class = $this
->getFormElementClassDefinition();
$element['#webform_composite_elements'] = $class::initializeCompositeElements($element);
// Issue #3010135: Add support for managed file uploads
if (method_exists($this, 'initializeCompositeElementsRecursive')) {
$this
->initializeCompositeElementsRecursive($element, $element['#webform_composite_elements']);
}
}