1<?php 2 3namespace MediaWiki\Page\Hook; 4 5// phpcs:disable Generic.Files.LineLength -- Remove this after doc review 6use DeferrableUpdate; 7use MediaWiki\Revision\RevisionRecord; 8use Title; 9 10/** 11 * @stable to implement 12 * @ingroup Hooks 13 */ 14interface PageDeletionDataUpdatesHook { 15 /** 16 * This hook is called when constructing a list of DeferrableUpdate to be 17 * executed when a page is deleted. 18 * 19 * @since 1.35 20 * 21 * @param Title $title Title of the page being deleted 22 * @param RevisionRecord $revision RevisionRecord representing the page's 23 * current revision at the time of deletion 24 * @param DeferrableUpdate[] &$updates List of DeferrableUpdate that can be 25 * manipulated by the hook handler 26 * @return bool|void True or no return value to continue or false to abort 27 */ 28 public function onPageDeletionDataUpdates( $title, $revision, &$updates ); 29} 30