You are here

public function Email::getItemFormats in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/Email.php \Drupal\webform\Plugin\WebformElement\Email::getItemFormats()

Get an element's available single value formats.

Return value

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

Overrides WebformElementBase::getItemFormats

File

src/Plugin/WebformElement/Email.php, line 83

Class

Email
Provides a 'email' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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