< Extension:Echo
BeforeEchoEventInsert | |
---|---|
Available from version ??? Before creating a new echo event | |
Define function: | public static function onBeforeEchoEventInsert( EchoEvent $event ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"BeforeEchoEventInsert": "MyExtensionHooks::onBeforeEchoEventInsert"
}
}
|
Called from: | File(s): Echo extension |
Interface: | BeforeEchoEventInsertHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:BeforeEchoEventInsert extensions.
Details
- $event: EchoEvent that will be created if the hook is not aborted
See also
- EchoEventInsertComplete hook, run after an event has been created
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.