You are here

public function ConfigNamesMapper::getBasePath 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::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 214
Contains \Drupal\config_translation\ConfigNamesMapper.

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

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