function FileHooks::filePredelete
Same name and namespace in other branches
- 11.x core/modules/file/src/Hook/FileHooks.php \Drupal\file\Hook\FileHooks::filePredelete()
Implements hook_ENTITY_TYPE_predelete() for file entities.
Attributes
#[Hook('file_predelete')]
File
-
core/
modules/ file/ src/ Hook/ FileHooks.php, line 78
Class
- FileHooks
- Hook implementations for file.
Namespace
Drupal\file\HookCode
public function filePredelete(File $file) : void {
// @todo Remove references to a file that is in-use. See https://www.drupal.org/project/drupal/issues/1506314
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.