protected function WebformEntityPrintAttachment::getExportTypeFileExtension in Webform 6.x
Same name in this branch
- 6.x modules/webform_entity_print_attachment/src/Element/WebformEntityPrintAttachment.php \Drupal\webform_entity_print_attachment\Element\WebformEntityPrintAttachment::getExportTypeFileExtension()
- 6.x modules/webform_entity_print_attachment/src/Plugin/WebformElement/WebformEntityPrintAttachment.php \Drupal\webform_entity_print_attachment\Plugin\WebformElement\WebformEntityPrintAttachment::getExportTypeFileExtension()
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::getExportTypeFileExtension()
Get export type file extension.
Return value
string An export type file extension.
1 call to WebformEntityPrintAttachment::getExportTypeFileExtension()
- WebformEntityPrintAttachment::form in modules/
webform_entity_print_attachment/ src/ Plugin/ WebformElement/ WebformEntityPrintAttachment.php - Gets the actual configuration webform array to be built.
File
- modules/
webform_entity_print_attachment/ src/ Plugin/ WebformElement/ WebformEntityPrintAttachment.php, line 119
Class
- WebformEntityPrintAttachment
- Provides a 'webform_entity_print_attachment' element.
Namespace
Drupal\webform_entity_print_attachment\Plugin\WebformElementCode
protected function getExportTypeFileExtension() {
list(, $export_type_id) = explode(':', $this
->getPluginId());
$definition = $this->exportTypeManager
->getDefinition($export_type_id);
return $definition['file_extension'];
}