MediaWiki master
MediaWiki\Page\Hook\PageDeletionDataUpdatesHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

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.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 16 of file PageDeletionDataUpdatesHook.php.

Member Function Documentation

◆ onPageDeletionDataUpdates()

MediaWiki\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: