public function WebformSignature::getItemFormats in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformSignature.php \Drupal\webform\Plugin\WebformElement\WebformSignature::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/ WebformSignature.php, line 132
Class
- WebformSignature
- Provides a 'signature' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
return [
'raw' => $this
->t('Raw value'),
'status' => $this
->t('Status'),
'url' => $this
->t('URL'),
'image' => $this
->t('Image'),
];
}