Debian Codegraph @

includes/Hook/FileDeleteCompleteHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use LocalFile;
6 use MediaWiki\User\User;
7 use WikiFilePage;
8
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "FileDeleteComplete" to register handlers implementing this interface.
12 *
13 * @stable to implement
14 * @ingroup Hooks
15 */
16 interface FileDeleteCompleteHook {
17 /**
18 * This hook is called when a file is deleted.
19 *
20 * @since 1.35
21 *
22 * @param LocalFile $file Reference to the deleted file
23 * @param string|null $oldimage In case of the deletion of an old image, the name of the old file
24 * @param WikiFilePage|null $article In case all revisions of the file are deleted, a reference to
25 * the WikiFilePage associated with the file
26 * @param User $user User who performed the deletion
27 * @param string $reason
28 * @return bool|void True or no return value to continue or false to abort
29 */
30 public function onFileDeleteComplete( $file, $oldimage, $article, $user,
31 $reason
32 );
33 }