2020-06-05 09:39:50 +00:00
|
|
|
<?php
|
|
|
|
|
2021-02-11 02:37:19 +00:00
|
|
|
namespace MediaWiki\Extension\Nuke\Hooks;
|
|
|
|
|
|
|
|
use Title;
|
|
|
|
|
2020-06-05 09:39:50 +00:00
|
|
|
interface NukeDeletePageHook {
|
|
|
|
|
|
|
|
/**
|
2021-03-31 20:07:24 +00:00
|
|
|
* Hook runner for the `NukeDeletePage` hook
|
|
|
|
*
|
2020-06-05 09:39:50 +00:00
|
|
|
* Allows other extensions to handle the deletion of titles
|
|
|
|
*
|
|
|
|
* @param Title $title title to delete
|
|
|
|
* @param string $reason reason for deletion
|
|
|
|
* @param bool &$deletionResult Whether the deletion was successful or not
|
2021-03-31 20:07:24 +00:00
|
|
|
* @return bool|void True or no return value to let Nuke handle the deletion or
|
|
|
|
* false if it was already handled in the hook.
|
2020-06-05 09:39:50 +00:00
|
|
|
*/
|
|
|
|
public function onNukeDeletePage( Title $title, string $reason, bool &$deletionResult );
|
|
|
|
}
|