|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onPingLimiter ( $user, $action, &$result, $incrBy) | |
| Use this hook to override the results of User::pingLimiter(). | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PingLimiter" to register handlers implementing this interface.
Definition at line 14 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.