protected function WebformEntityPrintAttachment::getExportTypeFileExtension in Webform 8.5
Same name in this branch
- 8.5 modules/webform_entity_print_attachment/src/Element/WebformEntityPrintAttachment.php \Drupal\webform_entity_print_attachment\Element\WebformEntityPrintAttachment::getExportTypeFileExtension()
- 8.5 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
- 6.x 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 103
Class
- WebformEntityPrintAttachment
- Provides a 'webform_entity_print_attachment' element.
Namespace
Drupal\webform_entity_print_attachment\Plugin\WebformElementCode
protected function getExportTypeFileExtension() {
/** @var \Drupal\entity_print\Plugin\ExportTypeManagerInterface $export_type_manager */
$export_type_manager = \Drupal::service('plugin.manager.entity_print.export_type');
list(, $export_type_id) = explode(':', $this
->getPluginId());
$definition = $export_type_manager
->getDefinition($export_type_id);
return $definition['file_extension'];
}