public function ProviderPluginManager::__construct in Authorization 8
Constructs a ProviderPluginManager 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_provider: The cache Provider instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- src/
Provider/ ProviderPluginManager.php, line 33
Class
- ProviderPluginManager
- Manages search Provider plugins.
Namespace
Drupal\authorization\ProviderCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_provider, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/authorization/Provider', $namespaces, $module_handler, ProviderInterface::class, AuthorizationProvider::class);
$this
->setCacheBackend($cache_provider, 'authorization_providers');
$this
->alterInfo('authorization_provider_info');
}