Manual:Hooks/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.php 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
edit$logEntry
: ManualLogEntry object