MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onApiMaxLagInfo (&$lagInfo) | |
This hook is called when lag information is being requested via API. | |
Stable to implement.
Definition at line 9 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.