Page MenuHomeWickedGov Phorge

ApiLogFeatureUsageHook.php
No OneTemporary

Size
689 B
Referenced Files
None
Subscribers
None

ApiLogFeatureUsageHook.php

<?php
namespace MediaWiki\Api\Hook;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ApiLogFeatureUsage" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface ApiLogFeatureUsageHook {
/**
* This hook is called after calling the logFeatureUsage() method of an API module.
* Use this hook to extend core API modules.
*
* @since 1.43
*
* @param string $feature
* @param array<string,mixed> $clientInfo
* @phan-param array{userName:string,userAgent:string,ipAddress:string} $clientInfo
* @return void
*/
public function onApiLogFeatureUsage( $feature, array $clientInfo ): void;
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 02:12 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
70/8c/7ffa7b2c02b39117fdc949add57e
Default Alt Text
ApiLogFeatureUsageHook.php (689 B)

Event Timeline