public function LanguagePathSubscriber::__construct in Tome 8
Constructs the LanguagePathSubscriber object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
- modules/
tome_static/ src/ EventSubscriber/ LanguagePathSubscriber.php, line 44
Class
- LanguagePathSubscriber
- Adds language negotiation URL prefixes to the list of paths to export.
Namespace
Drupal\tome_static\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager) {
$this->configFactory = $config_factory;
$this->languageManager = $language_manager;
}