vde_pdf_mpdf.module in Views Data Export PDF 7
Same filename and directory in other branches
Functions and hooks for the Views Data Export PDF - Renderer: mPDF module.
File
modules/vde_pdf_mpdf/vde_pdf_mpdf.moduleView source
<?php
/**
* @file
* Functions and hooks for the Views Data Export PDF - Renderer: mPDF module.
*/
/**
* Implements hook_pdf_export_renderers().
*/
function vde_pdf_mpdf_pdf_export_renderers() {
$renderers = [];
$renderers['mpdf_in_proc'] = [
'title' => t('mPDF (In-process, blocking)'),
'description' => t('Invokes mPDF within the request and blocks further processing of that request until the PDF has been generated.'),
'class' => 'views_data_export_pdf_mpdf_in_proc_renderer',
'file' => 'src/views_data_export_pdf_mpdf_in_proc_renderer.inc',
];
if (module_exists('vde_pdf_background_process')) {
// This renderer wraps the in-proc renderer in a background process renderer
$renderers['mpdf_background_process'] = [
'title' => t('mPDF (Background process, async)'),
'description' => t('During batched exports, invokes mPDF in an asynchronous background process to avoid load balancer timeouts on large data sets.'),
'class' => 'views_data_export_pdf_background_process_renderer',
'file' => 'src/views_data_export_pdf_background_process_renderer.inc',
'file path' => vde_pdf_background_process_get_module_path(),
'constructor arguments' => [
'vde_pdf_mpdf',
'views_data_export_pdf_mpdf_in_proc_renderer',
],
];
}
return $renderers;
}
Functions
Name![]() |
Description |
---|---|
vde_pdf_mpdf_pdf_export_renderers | Implements hook_pdf_export_renderers(). |