function PathProcessorLanguage::initConfigSubscriber
Same name in other branches
- 8.9.x core/modules/language/src/HttpKernel/PathProcessorLanguage.php \Drupal\language\HttpKernel\PathProcessorLanguage::initConfigSubscriber()
- 10 core/modules/language/src/HttpKernel/PathProcessorLanguage.php \Drupal\language\HttpKernel\PathProcessorLanguage::initConfigSubscriber()
- 11.x core/modules/language/src/HttpKernel/PathProcessorLanguage.php \Drupal\language\HttpKernel\PathProcessorLanguage::initConfigSubscriber()
Initializes the injected event subscriber with the language path processor.
The language path processor service is registered only on multilingual site configuration, thus we inject it in the event subscriber only when it is initialized.
File
-
core/
modules/ language/ src/ HttpKernel/ PathProcessorLanguage.php, line 161
Class
- PathProcessorLanguage
- Processes the inbound path using path alias lookups.
Namespace
Drupal\language\HttpKernelCode
public function initConfigSubscriber() {
$this->configSubscriber
->setPathProcessorLanguage($this);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.