function pdfpreview_file_update in PDFPreview 8
Same name and namespace in other branches
- 7.2 pdfpreview.module \pdfpreview_file_update()
- 2.0.x pdfpreview.module \pdfpreview_file_update()
Implements hook_ENTITY_TYPE_update().
File
- ./
pdfpreview.module, line 24 - Generates image previews of PDF files.
Code
function pdfpreview_file_update(EntityInterface $file) {
\Drupal::service('pdfpreview.generator')
->updatePDFPreview($file);
}