public function WebformCompositeBase::getItemsFormats in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformCompositeBase.php \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::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
File
- src/
Plugin/ WebformElement/ WebformCompositeBase.php, line 704
Class
- WebformCompositeBase
- Provides a base for composite elements.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemsFormats() {
return [
'ol' => $this
->t('Ordered list'),
'ul' => $this
->t('Unordered list'),
'hr' => $this
->t('Horizontal rule'),
'table' => $this
->t('Table'),
];
}