MediaWiki  master
Page\Hook\PageDeletionDataUpdatesHook Interface Reference

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

Inheritance diagram for Page\Hook\PageDeletionDataUpdatesHook:

Public Member Functions

 onPageDeletionDataUpdates ( $title, $revision, &$updates)
 This hook is called when constructing a list of DeferrableUpdate to be executed when a page is deleted. More...
 

Detailed Description

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

Use the hook name "PageDeletionDataUpdates" to register handlers implementing this interface.

Stable to implement

Definition at line 16 of file PageDeletionDataUpdatesHook.php.

Member Function Documentation

◆ onPageDeletionDataUpdates()

Page\Hook\PageDeletionDataUpdatesHook::onPageDeletionDataUpdates (   $title,
  $revision,
$updates 
)

This hook is called when constructing a list of DeferrableUpdate to be executed when a page is deleted.

Since
1.35
Parameters
Title$titleTitle of the page being deleted
RevisionRecord$revisionRevisionRecord representing the page's current revision at the time of deletion
DeferrableUpdate[]&$updatesList of DeferrableUpdate that can be manipulated by the hook handler
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: