1<?php 2 3namespace MediaWiki\Page\Hook; 4 5use Content; 6use DeferrableUpdate; 7use WikiPage; 8 9/** 10 * @deprecated since 1.32 Use PageDeletionDataUpdates or override 11 * ContentHandler::getDeletionDataUpdates instead 12 * @ingroup Hooks 13 */ 14interface WikiPageDeletionUpdatesHook { 15 /** 16 * Use this hook to manipulate the list of DeferrableUpdates to be applied 17 * when a page is deleted. 18 * 19 * @since 1.35 20 * 21 * @param WikiPage $page 22 * @param Content|null $content Content to generate updates for, or null in 23 * case the page revision could not be loaded. The delete will succeed 24 * despite this. 25 * @param DeferrableUpdate[] &$updates Array of objects that implement 26 * DeferrableUpdate. Hook function may want to add to it. 27 * @return bool|void True or no return value to continue or false to abort 28 */ 29 public function onWikiPageDeletionUpdates( $page, $content, &$updates ); 30} 31