protected function WebformEntityPrintAttachment::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_entity_print_attachment/src/Plugin/WebformElement/WebformEntityPrintAttachment.php \Drupal\webform_entity_print_attachment\Plugin\WebformElement\WebformEntityPrintAttachment::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformAttachmentBase::defineDefaultProperties
File
- modules/
webform_entity_print_attachment/ src/ Plugin/ WebformElement/ WebformEntityPrintAttachment.php, line 43
Class
- WebformEntityPrintAttachment
- Provides a 'webform_entity_print_attachment' element.
Namespace
Drupal\webform_entity_print_attachment\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = [
'view_mode' => 'html',
'template' => '',
] + parent::defineDefaultProperties();
// PDF documents should never be trimmed.
unset($properties['trim']);
return $properties;
}