You are here

protected function YamlFormAddress::getInitializedCompositeElement in YAML Form 8

Get initialized composite element.

Parameters

array &$element: A composite element.

Return value

array The initialized composite test element.

Overrides YamlFormCompositeBase::getInitializedCompositeElement

1 method overrides YamlFormAddress::getInitializedCompositeElement()
YamlFormContact::getInitializedCompositeElement in src/Plugin/YamlFormElement/YamlFormContact.php
Get initialized composite element.

File

src/Plugin/YamlFormElement/YamlFormAddress.php, line 32

Class

YamlFormAddress
Provides an 'address' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

protected function getInitializedCompositeElement(array &$element) {
  $form_state = new FormState();
  $form_completed = [];
  return YamlFormAddressElement::processYamlFormComposite($element, $form_state, $form_completed);
}