You are here

protected function YamlFormCreditCard::getCompositeElements in YAML Form 8

Same name in this branch
  1. 8 src/Element/YamlFormCreditCard.php \Drupal\yamlform\Element\YamlFormCreditCard::getCompositeElements()
  2. 8 src/Plugin/YamlFormElement/YamlFormCreditCard.php \Drupal\yamlform\Plugin\YamlFormElement\YamlFormCreditCard::getCompositeElements()

Get composite elements.

Return value

array An array of composite elements.

Overrides YamlFormCompositeBase::getCompositeElements

File

src/Plugin/YamlFormElement/YamlFormCreditCard.php, line 39

Class

YamlFormCreditCard
Provides a 'creditcard' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

protected function getCompositeElements() {
  $elements = YamlFormCreditCardElement::getCompositeElements();
  unset($elements['expiration']);
  return $elements;
}