public function RateLimitInterface::isRequestedEvent in RESTful 7.2
Checks if the current request meets the event for the implementing class.
Parameters
RequestInterface $request: (optional) The request array.
Return value
bool TRUE if the event is met and the rate limit hits counter should be incremented.
2 methods override RateLimitInterface::isRequestedEvent()
- RateLimitGlobal::isRequestedEvent in src/
Plugin/ rate_limit/ RateLimitGlobal.php - Only track the global limit for the current user if the variable is on.
- RateLimitRequest::isRequestedEvent in src/
Plugin/ rate_limit/ RateLimitRequest.php - Checks if the current request meets the event for the implementing class.
File
- src/
Plugin/ rate_limit/ RateLimitInterface.php, line 24 - Contains \Drupal\restful\Plugin\rate_limit\RateLimitInterface
Class
Namespace
Drupal\restful\Plugin\rate_limitCode
public function isRequestedEvent(RequestInterface $request);