MediaWiki master
ArticleDeleteHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page\Hook;
4
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:54
internal since 1.36
Definition User.php:93
Base representation for an editable wiki page.
Definition WikiPage.php:85
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.