Manual:Hooks/ArticleUndeleteLogEntry

ArticleUndeleteLogEntry
Available from version 1.21.0 (Gerrit change 33734)
Removed in version 1.38.0 (Gerrit change 721915)
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.php
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 edit

  • $pageArchive: the PageArchive object
  • &$logEntry: ManualLogEntry object
  • $user: User who is performing the log action