public function OptionsBase::getItemsFormats in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/OptionsBase.php \Drupal\webform\Plugin\WebformElement\OptionsBase::getItemsFormats()
Get an element's available multiple value formats.
Return value
array An associative array of multiple value formats containing name/label pairs.
Overrides WebformElementBase::getItemsFormats
1 call to OptionsBase::getItemsFormats()
- WebformImageSelect::getItemsFormats in modules/
webform_image_select/ src/ Plugin/ WebformElement/ WebformImageSelect.php - Get an element's available multiple value formats.
1 method overrides OptionsBase::getItemsFormats()
- WebformImageSelect::getItemsFormats in modules/
webform_image_select/ src/ Plugin/ WebformElement/ WebformImageSelect.php - Get an element's available multiple value formats.
File
- src/
Plugin/ WebformElement/ OptionsBase.php, line 524
Class
- OptionsBase
- Provides a base 'options' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemsFormats() {
return parent::getItemsFormats() + [
'checklist:boxes' => $this
->t('Checklist (☑/☐)'),
'checklist:crosses' => $this
->t('Checklist (gi)'),
];
}