MediaWiki REL1_35
MediaWiki\Page\Hook\ArticleDeleteCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\ArticleDeleteCompleteHook:

Public Member Functions

 onArticleDeleteComplete ( $wikiPage, $user, $reason, $id, $content, $logEntry, $archivedRevisionCount)
 This hook is called after an article is deleted.
 

Detailed Description

Stable to implement.

Definition at line 14 of file ArticleDeleteCompleteHook.php.

Member Function Documentation

◆ onArticleDeleteComplete()

MediaWiki\Page\Hook\ArticleDeleteCompleteHook::onArticleDeleteComplete (   $wikiPage,
  $user,
  $reason,
  $id,
  $content,
  $logEntry,
  $archivedRevisionCount 
)

This hook is called after an article is deleted.

Since
1.35
Parameters
WikiPage$wikiPageWikiPage that was deleted
User$userUser that deleted the article
string$reasonReason the article was deleted
int$idID of the article that was deleted
Content | null$contentContent of the deleted page (or null, when deleting a broken page)
ManualLogEntry$logEntryManualLogEntry used to record the deletion
int$archivedRevisionCountNumber of revisions archived during the deletion
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: