You are here

public function RateLimit::setLimit in RESTful 7.2

Set the rate limit.

Parameters

array $limits: The limits to set.

Overrides RateLimitInterface::setLimit

File

src/Plugin/rate_limit/RateLimit.php, line 55
Contains \Drupal\restful\Plugin\rate_limit\RateLimit

Class

RateLimit

Namespace

Drupal\restful\Plugin\rate_limit

Code

public function setLimit($limits) {
  $this->limits = $limits;
}