public function ConfigNamesMapper::getEditRoute in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getEditRoute()
- 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getEditRoute()
File
- core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 316
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
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;
}