You are here

public function ConsentUserResolverPluginManager::__construct in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/ConsentUserResolver/ConsentUserResolverPluginManager.php \Drupal\gdpr_consent\ConsentUserResolver\ConsentUserResolverPluginManager::__construct()
  2. 3.0.x modules/gdpr_consent/src/ConsentUserResolver/ConsentUserResolverPluginManager.php \Drupal\gdpr_consent\ConsentUserResolver\ConsentUserResolverPluginManager::__construct()

Constructs a ConsentUserResolverPluginManager 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 $cacheBackend: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

Overrides DefaultPluginManager::__construct

File

modules/gdpr_consent/src/ConsentUserResolver/ConsentUserResolverPluginManager.php, line 35

Class

ConsentUserResolverPluginManager
Class ConsentUserResolverPluginManager.

Namespace

Drupal\gdpr_consent\ConsentUserResolver

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cacheBackend, ModuleHandlerInterface $moduleHandler) {
  parent::__construct('Plugin/Gdpr/ConsentUserResolver', $namespaces, $moduleHandler, GdprConsentUserResolverInterface::class, GdprConsentUserResolver::class);
  $this
    ->setCacheBackend($cacheBackend, 'gdpr_consent_resolver_plugins');
  $this
    ->alterInfo('gdpr_consent_resolver_info');
}