protected function elFinderVolumeDrupal::FileUsageDelete in elFinder file manager 8.2
Same name and namespace in other branches
- 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::FileUsageDelete()
- 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::FileUsageDelete()
1 call to elFinderVolumeDrupal::FileUsageDelete()
- elFinderVolumeDrupal::_unlink in src/
Controller/ elFinderVolumeDrupal.php - Remove file
File
- src/
Controller/ elFinderVolumeDrupal.php, line 483 - elFinder driver for Drupal filesystem.
Class
- elFinderVolumeDrupal
- @file
Code
protected function FileUsageDelete($file) {
// Delete record that the module elfinder is using the file.
\Drupal::service('file.usage')
->delete($file, 'elfinder', 'elfinderFileFetcher', 0);
// 0 : means that there is no reference at the moment.
}