function ConfigNamesMapper::getOverviewRoute

Same name in other branches
  1. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOverviewRoute()
  2. 8.9.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOverviewRoute()
  3. 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOverviewRoute()

Overrides ConfigMapperInterface::getOverviewRoute

File

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

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.