public function ConfigNamesMapper::getOverviewRoute in Drupal 8
Same name and namespace in other branches
- 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOverviewRoute()
Returns the route object for a translation overview route.
Return value
\Symfony\Component\Routing\Route The route object for the translation page.
Overrides ConfigMapperInterface::getOverviewRoute
File
- core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 245
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
public function getOverviewRoute() {
$route = new Route($this
->getBaseRoute()
->getPath() . '/translate', [
'_controller' => '\\Drupal\\config_translation\\Controller\\ConfigTranslationController::itemPage',
'plugin_id' => $this
->getPluginId(),
], [
'_config_translation_overview_access' => 'TRUE',
]);
$this
->processRoute($route);
return $route;
}