MediaWiki REL1_40
MediaWiki\Page\Hook\WikiPageDeletionUpdatesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onWikiPageDeletionUpdates ( $page, $content, &$updates)
 Use this hook to manipulate the list of DeferrableUpdates to be applied when a page is deleted.
 

Detailed Description

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

Definition at line 17 of file WikiPageDeletionUpdatesHook.php.

Member Function Documentation

◆ onWikiPageDeletionUpdates()

MediaWiki\Page\Hook\WikiPageDeletionUpdatesHook::onWikiPageDeletionUpdates ( $page,
$content,
& $updates )

Use this hook to manipulate the list of DeferrableUpdates to be applied when a page is deleted.

Since
1.35
Parameters
WikiPage$page
Content | null$contentContent to generate updates for, or null in case the page revision could not be loaded. The delete will succeed despite this.
DeferrableUpdate[]&$updatesArray of objects that implement DeferrableUpdate. Hook function may want to add to it.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: