You are here

function _webform_entity_print_get_export_types in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_entity_print/webform_entity_print.webform.inc \_webform_entity_print_get_export_types()

Get export types.

Return value

array Associative array of export types.

2 calls to _webform_entity_print_get_export_types()
webform_entity_print_webform_admin_third_party_settings_form_alter in modules/webform_entity_print/webform_entity_print.webform.inc
Implements hook_webform_admin_third_party_settings_form_alter().
_webform_entity_print_form in modules/webform_entity_print/webform_entity_print.webform.inc
Build webform entity print form.

File

modules/webform_entity_print/webform_entity_print.webform.inc, line 216
Integrates third party settings for the Webform Entity Print module.

Code

function _webform_entity_print_get_export_types() {
  $export_types = \Drupal::service('plugin.manager.entity_print.export_type')
    ->getDefinitions();

  // Remove unsupported export types.
  // Issue #2733781: Add Export to Word Support.
  // @see https://www.drupal.org/project/entity_print/issues/2733781
  unset($export_types['word_docx']);

  // Issue #2735559: Add Export to ePub.
  // @see https://www.drupal.org/project/entity_print/issues/2735559
  unset($export_types['epub']);
  return $export_types;
}