You are here

public function Telephone::getFormats in YAML Form 8

Get an element's available formats.

Return value

array An associative array of formats containing name/label pairs.

Overrides YamlFormElementBase::getFormats

File

src/Plugin/YamlFormElement/Telephone.php, line 54

Class

Telephone
Provides a 'tel' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getFormats() {
  return parent::getFormats() + [
    'link' => $this
      ->t('Link'),
  ];
}