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