Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4109032
PageDeleteHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1006 B
Referenced Files
None
Subscribers
None
PageDeleteHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Page\ProperPageIdentity
;
use
MediaWiki\Permissions\Authority
;
use
StatusValue
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PageDelete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PageDeleteHook
{
/**
* This hook is called before a page is deleted.
*
* @since 1.37
*
* @param ProperPageIdentity $page Page being deleted.
* @param Authority $deleter Who is deleting the page
* @param string $reason Reason the page is being deleted
* @param StatusValue $status Add any error here
* @param bool $suppress Whether this is a suppression deletion or not
* @return bool|void True or no return value to continue; false to abort, which also requires adding
* a fatal error to $status.
*/
public
function
onPageDelete
(
ProperPageIdentity
$page
,
Authority
$deleter
,
string
$reason
,
StatusValue
$status
,
bool
$suppress
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 20:51 (1 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
10/dc/2ccccd2e8e42eddcf6632ea55e48
Default Alt Text
PageDeleteHook.php (1006 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment