mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 03:35:39 +00:00
e79b52ee8a
The new system allows to have documentation directly at the interfaces Change-Id: I82f6f87d145cc43b2dd5b7d1fa256850b50ca63f
22 lines
604 B
PHP
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 );
|
|
}
|