public function ConfigNamesMapper::getEditRoute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getEditRoute()
Returns the route object for a translation edit form route.
Return value
\Symfony\Component\Routing\Route The route object for the translation page.
Overrides ConfigMapperInterface::getEditRoute
File
- core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 306 - Contains \Drupal\config_translation\ConfigNamesMapper.
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
public function getEditRoute() {
$route = new Route($this
->getBaseRoute()
->getPath() . '/translate/{langcode}/edit', array(
'_form' => '\\Drupal\\config_translation\\Form\\ConfigTranslationEditForm',
'plugin_id' => $this
->getPluginId(),
), array(
'_config_translation_form_access' => 'TRUE',
));
$this
->processRoute($route);
return $route;
}