LanguageNegotiationMethodManager.php in Zircon Profile 8
File
core/modules/language/src/LanguageNegotiationMethodManager.php
View source
<?php
namespace Drupal\language;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class LanguageNegotiationMethodManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/LanguageNegotiation', $namespaces, $module_handler, 'Drupal\\language\\LanguageNegotiationMethodInterface', 'Drupal\\language\\Annotation\\LanguageNegotiation');
$this->cacheBackend = $cache_backend;
$this->cacheKeyPrefix = 'language_negotiation_plugins';
$this->cacheKey = 'language_negotiation_plugins';
$this
->alterInfo('language_negotiation_info');
}
}