public function WebformEntityPrintAttachment::getInfo in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_entity_print_attachment/src/Element/WebformEntityPrintAttachment.php \Drupal\webform_entity_print_attachment\Element\WebformEntityPrintAttachment::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides WebformAttachmentBase::getInfo
File
- modules/
webform_entity_print_attachment/ src/ Element/ WebformEntityPrintAttachment.php, line 18
Class
- WebformEntityPrintAttachment
- Provides a 'webform_entity_print_attachment' element.
Namespace
Drupal\webform_entity_print_attachment\ElementCode
public function getInfo() {
return parent::getInfo() + [
'#view_mode' => 'html',
'#export_type' => 'pdf',
'#template' => '',
];
}