MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onApiMaxLagInfo (&$lagInfo) | |
This hook is called when lag information is being requested via API. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiMaxLagInfo" to register handlers implementing this interface.
Definition at line 12 of file ApiMaxLagInfoHook.php.
MediaWiki\Api\Hook\ApiMaxLagInfoHook::onApiMaxLagInfo | ( | & | $lagInfo | ) |
This hook is called when lag information is being requested via API.
Use this hook to override lag information. Generally a hook function should only replace $lagInfo if the new $lagInfo['lag'] is greater than the current $lagInfo['lag'].
array | &$lagInfo | Maximum lag information array. Fields in the array are:
|
You can also add more fields that are returned to the user in the API response.
Implemented in MediaWiki\Api\ApiHookRunner.