protected function PageConfigMapper::processRoute in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/ConfigTranslation/PageConfigMapper.php \Drupal\page_manager_ui\ConfigTranslation\PageConfigMapper::processRoute()
Allows to process all config translation routes.
Parameters
\Symfony\Component\Routing\Route $route: The route object to process.
Overrides ConfigEntityMapper::processRoute
File
- page_manager_ui/
src/ ConfigTranslation/ PageConfigMapper.php, line 22 - Contains \Drupal\page_manager_ui\ConfigTranslation\PageConfigMapper.
Class
- PageConfigMapper
- Configuration mapper for page_manager pages.
Namespace
Drupal\page_manager_ui\ConfigTranslationCode
protected function processRoute(Route $route) {
parent::processRoute($route);
// Change the paths for config translation routes to outside the wizard.
$path = $route
->getPath();
$path = str_replace('manage/{machine_name}/{step}', '{page}', $path);
$route
->setPath($path);
}