function ConfigNamesMapper::getEditRoute

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

Overrides ConfigMapperInterface::getEditRoute

File

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

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getEditRoute() {
    $route = new Route($this->getBaseRoute()
        ->getPath() . '/translate/{langcode}/edit', [
        '_form' => '\\Drupal\\config_translation\\Form\\ConfigTranslationEditForm',
        'plugin_id' => $this->getPluginId(),
    ], [
        '_config_translation_form_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.