MediaWiki REL1_37
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:44
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:69
Class representing a MediaWiki article and history.
Definition WikiPage.php:60
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.