Merge "Refactor ContributionsSpecialPage->contributionsSub to support markup overrides"
[mediawiki.git] / includes / api / Hook / ApiLogFeatureUsageHook.php
blob1d25f1813ad0889870813e48c529c375f8fcefc8
1 <?php
3 namespace MediaWiki\Api\Hook;
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "ApiLogFeatureUsage" to register handlers implementing this interface.
9 * @stable to implement
10 * @ingroup Hooks
12 interface ApiLogFeatureUsageHook {
13 /**
14 * This hook is called after calling the logFeatureUsage() method of an API module.
15 * Use this hook to extend core API modules.
17 * @since 1.43
19 * @param string $feature
20 * @param array<string,mixed> $clientInfo
21 * @phan-param array{userName:string,userAgent:string,ipAddress:string} $clientInfo
22 * @return void
24 public function onApiLogFeatureUsage( $feature, array $clientInfo ): void;