class RateLimitRequest in RESTful 7.2
Class RateLimitGlobal @package Drupal\restful\Plugin\rate_limit
Plugin annotation
@RateLimit(
id = "request",
label = "Any request",
description = "The basic rate limit plugin. Every call to a resource is counted.",
)
Hierarchy
- class \Drupal\restful\Plugin\rate_limit\RateLimit extends \Drupal\Component\Plugin\PluginBase implements RateLimitInterface
- class \Drupal\restful\Plugin\rate_limit\RateLimitRequest
Expanded class hierarchy of RateLimitRequest
File
- src/
Plugin/ rate_limit/ RateLimitRequest.php, line 21 - Contains \Drupal\restful\Plugin\rate_limit\RateLimitRequest
Namespace
Drupal\restful\Plugin\rate_limitView source
class RateLimitRequest extends RateLimit {
/**
* {@inheritdoc}
*/
public function isRequestedEvent(RequestInterface $request) {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RateLimit:: |
protected | property | Array of maximum limit of requests across all endpoints per role. | |
RateLimit:: |
protected | property | Period after which the rate limit is expired. | |
RateLimit:: |
protected | property | The resource this object is limiting access to. | |
RateLimit:: |
public | function |
Generates an identifier for the event and the request. Overrides RateLimitInterface:: |
1 |
RateLimit:: |
public | function |
Get the rate limit. Returns the highest rate limit for the current account. Overrides RateLimitInterface:: |
1 |
RateLimit:: |
public | function |
Get the rate limit period. Overrides RateLimitInterface:: |
|
RateLimit:: |
public | function |
Load rate limit entity. Overrides RateLimitInterface:: |
|
RateLimit:: |
public | function |
Set the rate limit. Overrides RateLimitInterface:: |
|
RateLimit:: |
public | function |
Set the rate limit period. Overrides RateLimitInterface:: |
|
RateLimit:: |
public | function | 1 | |
RateLimitRequest:: |
public | function |
Checks if the current request meets the event for the implementing class. Overrides RateLimitInterface:: |