Debian Codegraph @

includes/page/Hook/ArticleConfirmDeleteHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Page\Hook;
4
5 use Article;
6 use MediaWiki\Output\OutputPage;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ArticleConfirmDelete" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface ArticleConfirmDeleteHook {
16 /**
17 * This hook is called before writing the confirmation form for article
18 * deletion.
19 *
20 * @since 1.35
21 *
22 * @param Article $article Article being deleted
23 * @param OutputPage $output
24 * @param string &$reason Reason the article is being deleted
25 * @return bool|void True or no return value to continue or false to abort
26 */
27 public function onArticleConfirmDelete( $article, $output, &$reason );
28 }