mediawiki-extensions-Nuke/includes/Hooks/NukeDeletePageHook.php

20 lines
541 B
PHP
Raw Normal View History

<?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 );
}