mediawiki-extensions-Nuke/includes/Hooks/NukeDeletePageHook.php
Reedy 52d27a2714 Namespace extension
Change-Id: If386a072e64f7c4903be911f5f70db3ee52338c2
2021-02-11 06:20:26 +00:00

20 lines
541 B
PHP

<?php
namespace MediaWiki\Extension\Nuke\Hooks;
use Title;
interface NukeDeletePageHook {
/**
* Allows other extensions to handle the deletion of titles
* Return true to let Nuke handle the deletion or false if it was already handled in the hook.
*
* @param Title $title title to delete
* @param string $reason reason for deletion
* @param bool &$deletionResult Whether the deletion was successful or not
* @return bool|void
*/
public function onNukeDeletePage( Title $title, string $reason, bool &$deletionResult );
}