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