Commit 1bdb4965 authored by webchick's avatar webchick

Issue #2314881 by Crell: Standardize responsive image mapping entity route names.

parent 82d9610c
responsive_image.mapping_page_edit:
entity.responsive_image_mapping.edit_form:
title: Edit
route_name: responsive_image.mapping_page_edit
base_route: responsive_image.mapping_page_edit
route_name: entity.responsive_image_mapping.edit_form
base_route: entity.responsive_image_mapping.edit_form
weight: -10
......@@ -66,11 +66,11 @@ function responsive_image_menu() {
);
$items['admin/config/media/responsive-image-mapping/%responsive_image_mapping'] = array(
'title' => 'Edit responsive image mapping',
'route_name' => 'responsive_image.mapping_page_edit',
'route_name' => 'entity.responsive_image_mapping.edit_form',
);
$items['admin/config/media/responsive-image-mapping/%responsive_image_mapping/duplicate'] = array(
'title' => 'Duplicate responsive image mapping',
'route_name' => 'responsive_image.mapping_page_duplicate',
'route_name' => 'entity.responsive_image_mapping.duplicate_form',
);
return $items;
......
......@@ -14,7 +14,7 @@ responsive_image.mapping_page_add:
requirements:
_permission: 'administer responsive images'
responsive_image.mapping_page_edit:
entity.responsive_image_mapping.edit_form:
path: '/admin/config/media/responsive-image-mapping/{responsive_image_mapping}'
defaults:
_entity_form: 'responsive_image_mapping.edit'
......@@ -22,7 +22,7 @@ responsive_image.mapping_page_edit:
requirements:
_permission: 'administer responsive images'
responsive_image.mapping_page_duplicate:
entity.responsive_image_mapping.duplicate_form:
path: '/admin/config/media/responsive-image-mapping/{responsive_image_mapping}/duplicate'
defaults:
_entity_form: 'responsive_image_mapping.duplicate'
......
......@@ -34,8 +34,8 @@
* "label" = "label"
* },
* links = {
* "edit-form" = "responsive_image.mapping_page_edit",
* "duplicate-form" = "responsive_image.mapping_page_duplicate"
* "edit-form" = "entity.responsive_image_mapping.edit_form",
* "duplicate-form" = "entity.responsive_image_mapping.duplicate_form"
* }
* )
*/
......
......@@ -132,7 +132,7 @@ public function save(array $form, FormStateInterface $form_state) {
// another breakpoint group.
if (!$responsive_image_mapping->hasMappings()) {
$form_state['redirect_route'] = array(
'route_name' => 'responsive_image.mapping_page_edit',
'route_name' => 'entity.responsive_image_mapping.edit_form',
'route_parameters' => array(
'responsive_image_mapping' => $responsive_image_mapping->id(),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment