public function LanguageSelect::getItemFormats in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/LanguageSelect.php \Drupal\webform\Plugin\WebformElement\LanguageSelect::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/ LanguageSelect.php, line 69
Class
- LanguageSelect
- Provides a 'language_select' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
return parent::getItemFormats() + [
'text' => $this
->t('Text'),
'langcode' => $this
->t('Langcode'),
'language' => $this
->t('Language'),
];
}