protected function WebformEntityPrintWebformDeriverBase::getDefinitions in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_entity_print/src/Plugin/Derivative/WebformEntityPrintWebformDeriverBase.php \Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformDeriverBase::getDefinitions()
Get export type definitions.
Return value
array An array of export type definitions.
2 calls to WebformEntityPrintWebformDeriverBase::getDefinitions()
- WebformEntityPrintAttachmentDeriver::getDerivativeDefinitions in modules/
webform_entity_print_attachment/ src/ Plugin/ Derivative/ WebformEntityPrintAttachmentDeriver.php - Gets the definition of all derivatives of a base plugin.
- WebformEntityPrintWebformExporterDeriver::getDerivativeDefinitions in modules/
webform_entity_print/ src/ Plugin/ Derivative/ WebformEntityPrintWebformExporterDeriver.php - Gets the definition of all derivatives of a base plugin.
File
- modules/
webform_entity_print/ src/ Plugin/ Derivative/ WebformEntityPrintWebformDeriverBase.php, line 46
Class
- WebformEntityPrintWebformDeriverBase
- Provides base deriver for webform entity print plugins.
Namespace
Drupal\webform_entity_print\Plugin\DerivativeCode
protected function getDefinitions() {
$definitions = $this->exportTypeManager
->getDefinitions();
// Remove unsupported export types.
// Issue #2733781: Add Export to Word Support.
// @see https://www.drupal.org/project/entity_print/issues/2733781
unset($definitions['word_docx']);
// Issue #2735559: Add Export to ePub.
// @see https://www.drupal.org/project/entity_print/issues/2735559
unset($definitions['epub']);
return $definitions;
}