You are here

public function AdministrationLanguageNegotiationConditionManager::__construct in Administration Language Negotiation 8

Constructs a new AdministrationLanguageNegotiationConditionManager 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_backend: An object that implements CacheBackendInterface.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: An object that implements ModuleHandlerInterface.

Overrides DefaultPluginManager::__construct

File

src/AdministrationLanguageNegotiationConditionManager.php, line 30

Class

AdministrationLanguageNegotiationConditionManager
Manages administration language negotiation condition plugins.

Namespace

Drupal\administration_language_negotiation

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/AdministrationLanguageNegotiationCondition', $namespaces, $module_handler, 'Drupal\\administration_language_negotiation\\AdministrationLanguageNegotiationConditionInterface', 'Drupal\\administration_language_negotiation\\Annotation\\AdministrationLanguageNegotiationCondition');
  $this->cacheBackend = $cache_backend;
  $this->cacheKeyPrefix = 'administration_language_negotiation_condition_plugins';
  $this->cacheKey = 'administration_language_negotiation_condition_plugins';
  $this
    ->alterInfo('administration_language_negotiation_condition_info');
}