3 namespace MediaWiki\Api\Hook
;
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "ApiLogFeatureUsage" to register handlers implementing this interface.
12 interface ApiLogFeatureUsageHook
{
14 * This hook is called after calling the logFeatureUsage() method of an API module.
15 * Use this hook to extend core API modules.
19 * @param string $feature
20 * @param array<string,mixed> $clientInfo
21 * @phan-param array{userName:string,userAgent:string,ipAddress:string} $clientInfo
24 public function onApiLogFeatureUsage( $feature, array $clientInfo ): void
;