mediawiki-extensions-Nuke/includes/Hooks/NukeDeletePageHook.php
Umherirrender e79b52ee8a Move documentation from hooks.txt to hook interfaces
The new system allows to have documentation directly at the interfaces

Change-Id: I82f6f87d145cc43b2dd5b7d1fa256850b50ca63f
2021-03-31 22:07:40 +02:00

22 lines
604 B
PHP

<?php
namespace MediaWiki\Extension\Nuke\Hooks;
use Title;
interface NukeDeletePageHook {
/**
* Hook runner for the `NukeDeletePage` hook
*
* 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
* @return bool|void True or no return value to let Nuke handle the deletion or
* false if it was already handled in the hook.
*/
public function onNukeDeletePage( Title $title, string $reason, bool &$deletionResult );
}