Manual:Hooks/ArticleUndeleteLogEntry

Category:MediaWiki hooks#ArticleUndeleteLogEntry Category:Hooks added in MediaWiki 1.21.0#ArticleUndeleteLogEntry Category:MediaWiki deprecated or obsolete features#ArticleUndeleteLogEntry Category:Hooks removed in MediaWiki 1.38.0#ArticleUndeleteLogEntry Category:Hooks deprecated in MediaWiki 1.37.0#ArticleUndeleteLogEntry
ArticleUndeleteLogEntry
Available from version 1.21.0 (Gerrit change 33734)
Removed in version 1.38.0 (Gerrit change 721915)Category:Removed hooks#ArticleUndeleteLogEntry
Occurs when a log entry is generated but not yet saved
Define function:
public static function onArticleUndeleteLogEntry( PageArchive $pageArchive, ManualLogEntry $logEntry, User $user ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleUndeleteLogEntry": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleUndeleteLogEntry"
	}
}
Called from: File(s): page/PageArchive.phpCategory:MediaWiki hooks included in PageArchive.php#ArticleUndeleteLogEntry
Function(s): undelete
Interface: ArticleUndeleteLogEntryHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ArticleUndeleteLogEntry extensions.

Details

  • $pageArchive: the PageArchive object
  • &$logEntry: ManualLogEntry object
  • $user: User who is performing the log action
Category:Hooks added in MediaWiki 1.21.0 Category:Hooks deprecated in MediaWiki 1.37.0 Category:Hooks removed in MediaWiki 1.38.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in PageArchive.php Category:Removed hooks