You are here

public function RateLimit::setPeriod in RESTful 7.2

Set the rate limit period.

Parameters

\DateInterval $period:

Overrides RateLimitInterface::setPeriod

File

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

Class

RateLimit

Namespace

Drupal\restful\Plugin\rate_limit

Code

public function setPeriod(\DateInterval $period) {
  $this->period = $period;
}