You are here

public function ConfigNamesMapper::getBasePath in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getBasePath()
  2. 10 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();
}