function FileTestHooks::filePredelete

Implements hook_ENTITY_TYPE_predelete() for file entities.

File

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

Class

FileTestHooks
Hook implementations for file_test.

Namespace

Drupal\file_test\Hook

Code

public function filePredelete(File $file) {
    _file_test_log_call('delete', [
        $file->id(),
    ]);
}

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