function FileTestHooks::fileCopy

Implements hook_file_copy().

File

core/modules/file/tests/file_test/src/Hook/FileTestHooks.php, line 64

Class

FileTestHooks
Hook implementations for file_test.

Namespace

Drupal\file_test\Hook

Code

public function fileCopy(File $file, $source) {
    _file_test_log_call('copy', [
        $file->id(),
        $source->id(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.