public function ConfigNamesMapper::getBaseRoute in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBaseRoute()
- 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBaseRoute()
File
- core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 203
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
public function getBaseRoute() {
if ($this->routeCollection) {
return $this->routeCollection
->get($this
->getBaseRouteName());
}
else {
return $this->routeProvider
->getRouteByName($this
->getBaseRouteName());
}
}