mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-12-03 12:26:22 +00:00
52d27a2714
Change-Id: If386a072e64f7c4903be911f5f70db3ee52338c2
20 lines
541 B
PHP
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 );
|
|
}
|