You are here

protected function YamlFormContact::getInitializedCompositeElement in YAML Form 8

Get initialized composite element.

Parameters

array &$element: A composite element.

Return value

array The initialized composite test element.

Overrides YamlFormAddress::getInitializedCompositeElement

File

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

Class

YamlFormContact
Provides a 'contact' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

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