Manual:Hooks/ManualLogEntryBeforePublish
From Linux Web Expert
ManualLogEntryBeforePublish | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 496257)</tvar></translate> Lets extensions tag log entries when actions are performed | |
<translate> Define function:</translate> | public static function onManualLogEntryBeforePublish( ManualLogEntry $logEntry ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"ManualLogEntryBeforePublish": "MediaWiki\\Extension\\MyExtension\\Hooks::onManualLogEntryBeforePublish"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> logging/ManualLogEntry.php <translate> Function(s):</translate> publish |
<translate> Interface:</translate> | ManualLogEntryBeforePublishHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ManualLogEntryBeforePublish extensions</tvar>.</translate>
Details
$logEntry
: ManualLogEntry object