protected function YamlFormCreditCard::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/ YamlFormCreditCard.php, line 48
Class
- YamlFormCreditCard
- Provides a 'creditcard' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
protected function getInitializedCompositeElement(array &$element) {
$form_state = new FormState();
$form_completed = [];
return YamlFormCreditCardElement::processYamlFormComposite($element, $form_state, $form_completed);
}