public function ContainerBase::getItemFormats in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/ContainerBase.php \Drupal\webform\Plugin\WebformElement\ContainerBase::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
1 method overrides ContainerBase::getItemFormats()
- WebformActions::getItemFormats in src/
Plugin/ WebformElement/ WebformActions.php - Get an element's available single value formats.
File
- src/
Plugin/ WebformElement/ ContainerBase.php, line 239
Class
- ContainerBase
- Provides a base 'container' class.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
return [
'header' => $this
->t('Header'),
'fieldset' => $this
->t('Fieldset'),
'details' => $this
->t('Details (opened)'),
'details-closed' => $this
->t('Details (closed)'),
'container' => $this
->t('Container (no title)'),
];
}