Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / includes / page / Hook / ArticleConfirmDeleteHook.php
blobfca77dc632e10d46465772d6e74a5b9bc5107f5e
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use Article;
6 use MediaWiki\Output\OutputPage;
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ArticleConfirmDelete" to register handlers implementing this interface.
12 * @stable to implement
13 * @ingroup Hooks
15 interface ArticleConfirmDeleteHook {
16 /**
17 * This hook is called before writing the confirmation form for article
18 * deletion.
20 * @since 1.35
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
27 public function onArticleConfirmDelete( $article, $output, &$reason );