function FileHooks::filePredelete

Implements hook_ENTITY_TYPE_predelete() for file entities.

File

core/modules/file/src/Hook/FileHooks.php, line 204

Class

FileHooks
Hook implementations for file.

Namespace

Drupal\file\Hook

Code

public function filePredelete(File $file) {
    // @todo Remove references to a file that is in-use.
}

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