You are here

public function YamlFormCreditCard::getDefaultProperties in YAML Form 8

Only a few elements don't inherit these default properties.

Overrides YamlFormCompositeBase::getDefaultProperties

See also

\Drupal\yamlform\Plugin\YamlFormElement\Textarea

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase

\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase

File

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

Class

YamlFormCreditCard
Provides a 'creditcard' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  $properties = parent::getDefaultProperties();
  unset($properties['type__options'], $properties['expiration_month__options'], $properties['expiration_year__options']);
  return $properties;
}