For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: I17e5e92e24c708ffc846945a136347670a3a20c7
29 lines
869 B
PHP
29 lines
869 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Page\Hook;
|
|
|
|
// phpcs:disable Generic.Files.LineLength -- Remove this after doc review
|
|
use DeferrableUpdate;
|
|
use MediaWiki\Revision\RevisionRecord;
|
|
use Title;
|
|
|
|
/**
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface PageDeletionDataUpdatesHook {
|
|
/**
|
|
* This hook is called when constructing a list of DeferrableUpdate to be
|
|
* executed when a page is deleted.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param Title $title Title of the page being deleted
|
|
* @param RevisionRecord $revision RevisionRecord representing the page's
|
|
* current revision at the time of deletion
|
|
* @param DeferrableUpdate[] &$updates List of DeferrableUpdate that can be
|
|
* manipulated by the hook handler
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onPageDeletionDataUpdates( $title, $revision, &$updates );
|
|
}
|