You are here

public function ConfigNamesMapper::getBasePath in Drupal 8

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

Returns a processed path for the base route the mapper is attached to.

Return value

string Processed path with placeholders replaced.

Overrides ConfigMapperInterface::getBasePath

File

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

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getBasePath() {
  return Url::fromRoute($this
    ->getBaseRouteName(), $this
    ->getBaseRouteParameters())
    ->getInternalPath();
}