public function LanguageSwitcherLinksAlterer::__construct in Facets 8
LanguageSwitcherLinksAlterer constructor.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\facets\UrlProcessor\UrlProcessorPluginManager $urlProcessorManager: The URL processor plugin manager.
File
- src/
LanguageSwitcherLinksAlterer.php, line 69
Class
- LanguageSwitcherLinksAlterer
- Helper service that alters the language switcher links.
Namespace
Drupal\facetsCode
public function __construct(LanguageManagerInterface $languageManager, CacheBackendInterface $cacheBackend, EntityTypeManagerInterface $entityTypeManager, UrlProcessorPluginManager $urlProcessorManager) {
$this->languageManager = $languageManager;
$this->cacheBackend = $cacheBackend;
$this->entityTypeManager = $entityTypeManager;
$this->urlProcessorManager = $urlProcessorManager;
}