public function WebformTable::getItemFormats in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/WebformTable.php \Drupal\webform\Plugin\WebformElement\WebformTable::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/ WebformTable.php, line 111
Class
- WebformTable
- Provides a 'webform_table' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
return [
'table' => $this
->t('Table'),
'fieldset' => $this
->t('Fieldset'),
'details' => $this
->t('Details (opened)'),
'details-closed' => $this
->t('Details (closed)'),
];
}