function FileTestHooks::fileCopy
Same name and namespace in other branches
- 11.x core/modules/file/tests/file_test/src/Hook/FileTestHooks.php \Drupal\file_test\Hook\FileTestHooks::fileCopy()
Implements hook_file_copy().
Attributes
#[Hook('file_copy')]
File
-
core/
modules/ file/ tests/ file_test/ src/ Hook/ FileTestHooks.php, line 66
Class
- FileTestHooks
- Hook implementations for file_test.
Namespace
Drupal\file_test\HookCode
public function fileCopy(File $file, $source) : void {
FileTestHelper::logCall('copy', [
$file->id(),
$source->id(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.