Manual:Hooks/ApiLogFeatureUsage
ApiLogFeatureUsage | |
---|---|
Available from version 1.43.0 (Gerrit change 1020383) Called after calling the logFeatureUsage() method of an API module | |
Define function: | public static function onApiLogFeatureUsage( $feature, $clientInfo ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ApiLogFeatureUsage": "MediaWiki\\Extension\\MyExtension\\Hooks::onApiLogFeatureUsage"
}
}
|
Called from: | File(s): api/ApiBase.phpCategory:MediaWiki hooks included in ApiBase.php#ApiLogFeatureUsage |
Interface: | ApiLogFeatureUsageHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ApiLogFeatureUsage extensions.
Use this hook to extend core API modules.