protected function WebformSignature::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformSignature.php \Drupal\webform\Plugin\WebformElement\WebformSignature::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformElementBase::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ WebformSignature.php, line 46
Class
- WebformSignature
- Provides a 'signature' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = [
// General settings.
'description' => $this
->t('Sign above'),
'readonly' => FALSE,
] + parent::defineDefaultProperties();
unset($properties['format_items'], $properties['format_items_html'], $properties['format_items_text']);
return $properties;
}