You are here

public function ConfigNamesMapper::getBaseRoute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBaseRoute()

Returns the base route object the mapper is attached to.

Return value

\Symfony\Component\Routing\Route The base route object the mapper is attached to.

Overrides ConfigMapperInterface::getBaseRoute

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 193
Contains \Drupal\config_translation\ConfigNamesMapper.

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());
  }
}