MediaWiki  master
PageDeleteHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Page\Hook;
4 
7 use StatusValue;
8 
16 interface PageDeleteHook {
30  public function onPageDelete(
31  ProperPageIdentity $page,
32  Authority $deleter,
33  string $reason,
34  StatusValue $status,
35  bool $suppress
36  );
37 }
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: StatusValue.php:43
Page::Hook\PageDeleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: PageDeleteHook.php:16
MediaWiki\Permissions\Authority
This interface represents the authority associated the current execution context, such as a web reque...
Definition: Authority.php:37
Page\ProperPageIdentity
Interface for objects representing a page that is (or could be, or used to be) an editable page on a ...
Definition: ProperPageIdentity.php:43
Page::Hook\PageDeleteHook\onPageDelete
onPageDelete(ProperPageIdentity $page, Authority $deleter, string $reason, StatusValue $status, bool $suppress)
This hook is called before a page is deleted.
MediaWiki\Page\Hook
Definition: Article__MissingArticleConditionsHook.php:3