Merge ".mailmap: Correct two contributor names"
[mediawiki.git] / includes / page / Hook / PageDeletionDataUpdatesHook.php
blob0b4a388e61527b7a32243e60300cb87d85626dda
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use MediaWiki\Deferred\DeferrableUpdate;
6 use MediaWiki\Revision\RevisionRecord;
7 use MediaWiki\Title\Title;
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "PageDeletionDataUpdates" to register handlers implementing this interface.
13 * @stable to implement
14 * @ingroup Hooks
16 interface PageDeletionDataUpdatesHook {
17 /**
18 * This hook is called when constructing a list of DeferrableUpdate to be
19 * executed when a page is deleted.
21 * @since 1.35
23 * @param Title $title Title of the page being deleted
24 * @param RevisionRecord $revision RevisionRecord representing the page's
25 * current revision at the time of deletion
26 * @param DeferrableUpdate[] &$updates List of DeferrableUpdate that can be
27 * manipulated by the hook handler
28 * @return bool|void True or no return value to continue or false to abort
30 public function onPageDeletionDataUpdates( $title, $revision, &$updates );