MediaWiki REL1_40
ArticleDeleteHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page\Hook;
4
5use Status;
6use User;
7use WikiPage;
8
33 public function onArticleDelete( WikiPage $wikiPage, User $user, &$reason, &$error, Status &$status,
34 $suppress
35 );
36}
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:46
internal since 1.36
Definition User.php:71
Base representation for an editable wiki page.
Definition WikiPage.php:75
This is a hook handler interface, see docs/Hooks.md.
onArticleDelete(WikiPage $wikiPage, User $user, &$reason, &$error, Status &$status, $suppress)
This hook is called before an article is deleted.