You are here

public function RateLimitGlobal::getLimit in RESTful 7.2

All limits are the same for the global limit. Return the first one.

Overrides RateLimit::getLimit

1 call to RateLimitGlobal::getLimit()
RateLimitGlobal::isRequestedEvent in src/Plugin/rate_limit/RateLimitGlobal.php
Only track the global limit for the current user if the variable is on.

File

src/Plugin/rate_limit/RateLimitGlobal.php, line 51
Contains \Drupal\restful\Plugin\rate_limit\RateLimitGlobal

Class

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

Namespace

Drupal\restful\Plugin\rate_limit

Code

public function getLimit($account = NULL) {
  return reset($this->limits);
}