class RateLimitPluginManager in RESTful 7.2
Hierarchy
- class \Drupal\restful\Plugin\RateLimitPluginManager extends \Drupal\Core\Plugin\DefaultPluginManager
Expanded class hierarchy of RateLimitPluginManager
1 file declares its use of RateLimitPluginManager
- RateLimitManager.php in src/
RateLimit/ RateLimitManager.php - Contains \Drupal\restful\RateLimit\RateLimitManager
File
- src/
Plugin/ RateLimitPluginManager.php, line 13 - Contains \Drupal\restful\Plugin\RateLimitPluginManager.
Namespace
Drupal\restful\PluginView source
class RateLimitPluginManager extends DefaultPluginManager {
/**
* Constructs RateLimitPluginManager.
*
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations.
* @param \DrupalCacheInterface $cache_backend
* Cache backend instance to use.
*/
public function __construct(\Traversable $namespaces, \DrupalCacheInterface $cache_backend) {
parent::__construct('Plugin/rate_limit', $namespaces, 'Drupal\\restful\\Plugin\\rate_limit\\RateLimitInterface', '\\Drupal\\restful\\Annotation\\RateLimit');
$this
->setCacheBackend($cache_backend, 'rate_limit_plugins');
$this
->alterInfo('rate_limit_plugin');
}
/**
* RateLimitPluginManager factory method.
*
* @param string $bin
* The cache bin for the plugin manager.
*
* @return RateLimitPluginManager
* The created manager.
*/
public static function create($bin = 'cache') {
return new static(Module::getNamespaces(), _cache_get_object($bin));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RateLimitPluginManager:: |
public static | function | RateLimitPluginManager factory method. | |
RateLimitPluginManager:: |
public | function | Constructs RateLimitPluginManager. |