You are here

protected function elFinderVolumeDrupal::FileUsageAdd in elFinder file manager 8.2

Same name and namespace in other branches
  1. 7.3 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::FileUsageAdd()
  2. 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::FileUsageAdd()
5 calls to elFinderVolumeDrupal::FileUsageAdd()
elFinderVolumeDrupal::extract in src/Controller/elFinderVolumeDrupal.php
elFinderVolumeDrupal::_archive in src/Controller/elFinderVolumeDrupal.php
elFinderVolumeDrupal::_copy in src/Controller/elFinderVolumeDrupal.php
Copy file into another file
elFinderVolumeDrupal::_mkfile in src/Controller/elFinderVolumeDrupal.php
Create file
elFinderVolumeDrupal::_save in src/Controller/elFinderVolumeDrupal.php
Create new file and write into it from file pointer. Return new file path or false on error.

File

src/Controller/elFinderVolumeDrupal.php, line 478
elFinder driver for Drupal filesystem.

Class

elFinderVolumeDrupal
@file

Code

protected function FileUsageAdd($file) {

  // Record that the module elfinder is using the file.
  \Drupal::service('file.usage')
    ->add($file, 'elfinder', 'elfinderFileFetcher', 0);

  // 0 : means that there is no reference at the moment.
}