MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onPageDelete (ProperPageIdentity $page, Authority $deleter, string $reason, StatusValue $status, bool $suppress) | |
This hook is called before a page is deleted. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PageDelete" to register handlers implementing this interface.
Definition at line 16 of file PageDeleteHook.php.
MediaWiki\Page\Hook\PageDeleteHook::onPageDelete | ( | ProperPageIdentity | $page, |
Authority | $deleter, | ||
string | $reason, | ||
StatusValue | $status, | ||
bool | $suppress ) |
This hook is called before a page is deleted.
ProperPageIdentity | $page | Page being deleted. |
Authority | $deleter | Who is deleting the page |
string | $reason | Reason the page is being deleted |
StatusValue | $status | Add any error here |
bool | $suppress | Whether this is a suppression deletion or not |
Implemented in MediaWiki\HookContainer\HookRunner.