public function ConsumerPluginManager::__construct in Authorization 8
Constructs a ConsumerPluginManager object.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_consumer: The cache Consumer instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- src/
Consumer/ ConsumerPluginManager.php, line 32
Class
- ConsumerPluginManager
- Manages search Consumer plugins.
Namespace
Drupal\authorization\ConsumerCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_consumer, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/authorization/Consumer', $namespaces, $module_handler, 'Drupal\\authorization\\Consumer\\ConsumerInterface', 'Drupal\\authorization\\Annotation\\AuthorizationConsumer');
$this
->setCacheBackend($cache_consumer, 'authorization_consumers');
$this
->alterInfo('authorization_consumer_info');
}