public function Url::getItemFormats in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/Url.php \Drupal\webform\Plugin\WebformElement\Url::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/ Url.php, line 66
Class
- Url
- Provides a 'url' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
return parent::getItemFormats() + [
'link' => $this
->t('Link'),
];
}