public function LanguageSelectionPageConditionManager::__construct in Language Selection Page 8.2
Constructs a new LanguageSelectionPageConditionManager 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/
LanguageSelectionPageConditionManager.php, line 29
Class
- LanguageSelectionPageConditionManager
- Manages language selection page condition plugins.
Namespace
Drupal\language_selection_pageCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/LanguageSelectionPageCondition', $namespaces, $module_handler, 'Drupal\\language_selection_page\\LanguageSelectionPageConditionInterface', 'Drupal\\language_selection_page\\Annotation\\LanguageSelectionPageCondition');
$this->cacheBackend = $cache_backend;
$this->cacheKeyPrefix = 'language_selection_page_condition_plugins';
$this->cacheKey = 'language_selection_page_condition_plugins';
$this
->alterInfo('language_selection_page_condition_info');
}