Manual:Hooks/ManualLogEntryBeforePublish

Category:MediaWiki hooks#ManualLogEntryBeforePublish Category:Hooks added in MediaWiki 1.33.0#ManualLogEntryBeforePublish
ManualLogEntryBeforePublish
Available from version 1.33.0 (Gerrit change 496257)
Lets extensions tag log entries when actions are performed
Define function:
public static function onManualLogEntryBeforePublish( ManualLogEntry $logEntry ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ManualLogEntryBeforePublish": "MediaWiki\\Extension\\MyExtension\\Hooks::onManualLogEntryBeforePublish"
	}
}
Called from: File(s): logging/ManualLogEntry.phpCategory:MediaWiki hooks included in ManualLogEntry.php#ManualLogEntryBeforePublish
Function(s): publish
Interface: ManualLogEntryBeforePublishHook.php

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

Details

  • $logEntry: ManualLogEntry object
Category:Hooks added in MediaWiki 1.33.0 Category:MediaWiki hooks Category:MediaWiki hooks included in ManualLogEntry.php