Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5974702
WikiPageDeletionUpdatesHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
WikiPageDeletionUpdatesHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Content\Content
;
use
MediaWiki\Deferred\DeferrableUpdate
;
use
WikiPage
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "WikiPageDeletionUpdates" to register handlers implementing this interface.
*
* @deprecated since 1.32 Use PageDeletionDataUpdates or override
* ContentHandler::getDeletionDataUpdates instead
* @ingroup Hooks
*/
interface
WikiPageDeletionUpdatesHook
{
/**
* Use this hook to manipulate the list of DeferrableUpdates to be applied
* when a page is deleted.
*
* @since 1.35
*
* @param WikiPage $page
* @param Content|null $content Content to generate updates for, or null in
* case the page revision could not be loaded. The delete will succeed
* despite this.
* @param DeferrableUpdate[] &$updates Array of objects that implement
* DeferrableUpdate. Hook function may want to add to it.
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onWikiPageDeletionUpdates
(
$page
,
$content
,
&
$updates
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 17:39 (1 d, 18 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
60/5f/2f51bb5fa052959329c0ef98958a
Default Alt Text
WikiPageDeletionUpdatesHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment