You are here

function file_file_predelete in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/file.module \file_file_predelete()
  2. 9 core/modules/file/file.module \file_file_predelete()

Implements hook_ENTITY_TYPE_predelete() for file entities.

File

core/modules/file/file.module, line 740
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_file_predelete(File $file) {

  // @todo Remove references to a file that is in-use.
}