protected function YamlFormName::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
File
- src/
Plugin/ YamlFormElement/ YamlFormName.php, line 32
Class
- YamlFormName
- Provides an 'name' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
protected function getInitializedCompositeElement(array &$element) {
$form_state = new FormState();
$form_completed = [];
return YamlFormNameElement::processYamlFormComposite($element, $form_state, $form_completed);
}