You are here

public function WebformEntityPrintAttachment::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\Element

Code

public function getInfo() {
  return parent::getInfo() + [
    '#view_mode' => 'html',
    '#export_type' => 'pdf',
    '#template' => '',
  ];
}