You are here

public function RateLimitRequest::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.

Overrides RateLimitInterface::isRequestedEvent

File

src/Plugin/rate_limit/RateLimitRequest.php, line 26
Contains \Drupal\restful\Plugin\rate_limit\RateLimitRequest

Class

RateLimitRequest
Class RateLimitGlobal @package Drupal\restful\Plugin\rate_limit

Namespace

Drupal\restful\Plugin\rate_limit

Code

public function isRequestedEvent(RequestInterface $request) {
  return TRUE;
}