You are here

public function WebformCompositeBase::getCompositeElements in Webform 6.x

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

Get composite element.

Return value

array An array of composite sub-elements or a specific composite sub element key.

7 calls to WebformCompositeBase::getCompositeElements()
WebformCompositeBase::buildCompositeElementsTable in src/Plugin/WebformElement/WebformCompositeBase.php
Build the composite elements settings table.
WebformCompositeBase::defineDefaultProperties in src/Plugin/WebformElement/WebformCompositeBase.php
Define an element's default properties.
WebformCompositeBase::prepareMultipleWrapper in src/Plugin/WebformElement/WebformCompositeBase.php
Set multiple element wrapper.
WebformLocationBase::buildCompositeElementsTable in src/Plugin/WebformElement/WebformLocationBase.php
Build the composite elements settings table.
WebformLocationBase::defineDefaultProperties in src/Plugin/WebformElement/WebformLocationBase.php
Define an element's default properties.

... See full list

2 methods override WebformCompositeBase::getCompositeElements()
Address::getCompositeElements in src/Plugin/WebformElement/Address.php
Get composite element.
WebformCustomComposite::getCompositeElements in src/Plugin/WebformElement/WebformCustomComposite.php
Get composite element.

File

src/Plugin/WebformElement/WebformCompositeBase.php, line 1313

Class

WebformCompositeBase
Provides a base for composite elements.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function getCompositeElements() {
  $class = $this
    ->getFormElementClassDefinition();
  return $class::getCompositeElements([]);
}