function ConfigNamesMapper::getBaseRoute

Same name in other branches
  1. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBaseRoute()
  2. 10 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBaseRoute()
  3. 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBaseRoute()

Overrides ConfigMapperInterface::getBaseRoute

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 203

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getBaseRoute() {
    if ($this->routeCollection) {
        return $this->routeCollection
            ->get($this->getBaseRouteName());
    }
    else {
        return $this->routeProvider
            ->getRouteByName($this->getBaseRouteName());
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.