MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onPingLimiter ( $user, $action, &$result, $incrBy) | |
Use this hook to override the results of User::pingLimiter(). | |
Stable to implement.
Definition at line 11 of file PingLimiterHook.php.
MediaWiki\User\Hook\PingLimiterHook::onPingLimiter | ( | $user, | |
$action, | |||
& | $result, | ||
$incrBy | |||
) |
Use this hook to override the results of User::pingLimiter().
User | $user | User performing the action |
string | $action | Action being performed |
bool | &$result | Whether or not the action should be prevented Change $result and return false to give a definitive answer, otherwise the built-in rate limiting checks are used, if enabled. |
int | $incrBy | Amount to increment counter by |
Implemented in MediaWiki\HookContainer\HookRunner.