3 namespace MediaWiki\Page\Hook
;
6 use MediaWiki\Output\OutputPage
;
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
15 interface ArticleConfirmDeleteHook
{
17 * This hook is called before writing the confirmation form for article
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 );