protected function PageVariantConfigMapper::alterRouteName in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/ConfigTranslation/PageVariantConfigMapper.php \Drupal\page_manager_ui\ConfigTranslation\PageVariantConfigMapper::alterRouteName()
Alter the route name to be unique from page entity route names.
Parameters
string $name: Route name for the mapper.
Return value
string Altered route name for the mapper.
3 calls to PageVariantConfigMapper::alterRouteName()
- PageVariantConfigMapper::getAddRouteName in page_manager_ui/
src/ ConfigTranslation/ PageVariantConfigMapper.php - Returns route name for the translation add form route.
- PageVariantConfigMapper::getDeleteRouteName in page_manager_ui/
src/ ConfigTranslation/ PageVariantConfigMapper.php - Returns route name for the translation deletion route.
- PageVariantConfigMapper::getEditRouteName in page_manager_ui/
src/ ConfigTranslation/ PageVariantConfigMapper.php - Returns route name for the translation edit form route.
File
- page_manager_ui/
src/ ConfigTranslation/ PageVariantConfigMapper.php, line 72 - Contains \Drupal\page_manager_ui\ConfigTranslation\PageVariantConfigMapper.
Class
- PageVariantConfigMapper
- Configuration mapper for page variants.
Namespace
Drupal\page_manager_ui\ConfigTranslationCode
protected function alterRouteName($name) {
return str_replace('page', 'page_variant', $name);
}