Extension:Echo/BeforeEchoEventInsert
From Linux Web Expert
BeforeEchoEventInsert | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Before creating a new echo event | |
<translate> Define function:</translate> | public static function onBeforeEchoEventInsert( EchoEvent $event ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"BeforeEchoEventInsert": "MediaWiki\\Extension\\MyExtension\\Hooks::onBeforeEchoEventInsert"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> Echo extension |
<translate> Interface:</translate> | BeforeEchoEventInsertHook.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:BeforeEchoEventInsert extensions</tvar>.</translate>
Details
- $event: EchoEvent that will be created if the hook is not aborted
See also
- EchoEventInsertComplete hook, run after an event has been created