Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Extension\Nuke\Hooks;
4
5use MediaWiki\Title\Title;
6
7interface NukeDeletePageHook {
8
9    /**
10     * Hook runner for the `NukeDeletePage` hook
11     *
12     * Allows other extensions to handle the deletion of titles
13     *
14     * @param Title $title title to delete
15     * @param string $reason reason for deletion
16     * @param bool &$deletionResult Whether the deletion was successful or not
17     * @return bool|void True or no return value to let Nuke handle the deletion or
18     *  false if it was already handled in the hook.
19     */
20    public function onNukeDeletePage( Title $title, string $reason, bool &$deletionResult );
21}