MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onFileUndeleteComplete ( $title, $fileVersions, $user, $reason) | |
This hook is called when a file is undeleted. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "FileUndeleteComplete" to register handlers implementing this interface.
Definition at line 15 of file FileUndeleteCompleteHook.php.
MediaWiki\Hook\FileUndeleteCompleteHook::onFileUndeleteComplete | ( | $title, | |
$fileVersions, | |||
$user, | |||
$reason | |||
) |
This hook is called when a file is undeleted.
Title | $title | Title object for the file |
int[] | $fileVersions | Array of undeleted filearchive IDs. Empty if all versions were restored. |
User | $user | User who performed the undeletion |
string | $reason |
Implemented in MediaWiki\Api\ApiHookRunner, and MediaWiki\HookContainer\HookRunner.