MediaWiki  master
Page\Hook\WikiPageDeletionUpdatesHook Interface Reference
Inheritance diagram for Page\Hook\WikiPageDeletionUpdatesHook:

Public Member Functions

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

Detailed Description

Deprecated:
since 1.32 Use PageDeletionDataUpdates or override ContentHandler::getDeletionDataUpdates instead

Definition at line 14 of file WikiPageDeletionUpdatesHook.php.

Member Function Documentation

◆ onWikiPageDeletionUpdates()

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: