MediaWiki master
MediaWiki\Page\Hook\ArticleDeleteCompleteHook Interface Reference

This is a hook handler interface, see docs/ More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/

Use the hook name "ArticleDeleteComplete" to register handlers implementing this interface.

since 1.37, use PageDeleteCompleteHook instead. The new hook uses more modern typehints and replaces the Content object with a RevisionRecord.

Definition at line 18 of file ArticleDeleteCompleteHook.php.

Member Function Documentation

◆ onArticleDeleteComplete()

MediaWiki\Page\Hook\ArticleDeleteCompleteHook::onArticleDeleteComplete ( $wikiPage,
$archivedRevisionCount )

This hook is called after an article is deleted.

WikiPage$wikiPageWikiPage that was deleted. This object represents state before deletion (e.g. $wikiPage->exists() will return true).
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
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: