Issue #2314863 by andypost, Crell: Standardize block content entity route names.
parent
758267ea70
commit
ac0fe75eb8
|
@ -1,10 +1,10 @@
|
|||
block_content.block_edit:
|
||||
title: 'Edit'
|
||||
group: block_content
|
||||
route_name: 'block_content.edit'
|
||||
route_name: 'entity.block_content.canonical'
|
||||
|
||||
block_content.block_delete:
|
||||
title: 'Delete'
|
||||
group: block_content
|
||||
route_name: 'block_content.delete'
|
||||
route_name: 'entity.block_content.delete_form'
|
||||
weight: 1
|
||||
|
|
|
@ -11,17 +11,17 @@ block_content.type_list:
|
|||
route_name: block_content.type_list
|
||||
parent_id: block_content.list
|
||||
|
||||
block_content.edit:
|
||||
entity.block_content.canonical:
|
||||
title: Edit
|
||||
route_name: block_content.edit
|
||||
base_route: block_content.edit
|
||||
block_content.delete:
|
||||
route_name: entity.block_content.canonical
|
||||
base_route: entity.block_content.canonical
|
||||
entity.block_content.delete_form:
|
||||
title: Delete
|
||||
route_name: block_content.delete
|
||||
base_route: block_content.edit
|
||||
route_name: entity.block_content.delete_form
|
||||
base_route: entity.block_content.canonical
|
||||
|
||||
# Default tab for custom block type editing.
|
||||
block_content.type_edit:
|
||||
entity.block_content_type.edit_form:
|
||||
title: 'Edit'
|
||||
route_name: block_content.type_edit
|
||||
base_route: block_content.type_edit
|
||||
route_name: entity.block_content_type.edit_form
|
||||
base_route: entity.block_content_type.edit_form
|
||||
|
|
|
@ -26,7 +26,7 @@ block_content.add_form:
|
|||
requirements:
|
||||
_permission: 'administer blocks'
|
||||
|
||||
block_content.type_delete:
|
||||
entity.block_content_type.delete_form:
|
||||
path: '/admin/structure/block/block-content/manage/{block_content_type}/delete'
|
||||
defaults:
|
||||
_entity_form: 'block_content_type.delete'
|
||||
|
@ -36,7 +36,7 @@ block_content.type_delete:
|
|||
options:
|
||||
_admin_route: TRUE
|
||||
|
||||
block_content.edit:
|
||||
entity.block_content.canonical:
|
||||
path: '/block/{block_content}'
|
||||
defaults:
|
||||
_entity_form: 'block_content.edit'
|
||||
|
@ -45,7 +45,7 @@ block_content.edit:
|
|||
requirements:
|
||||
_entity_access: 'block_content.update'
|
||||
|
||||
block_content.delete:
|
||||
entity.block_content.delete_form:
|
||||
path: '/block/{block_content}/delete'
|
||||
defaults:
|
||||
_entity_form: 'block_content.delete'
|
||||
|
@ -63,7 +63,7 @@ block_content.type_add:
|
|||
requirements:
|
||||
_permission: 'administer blocks'
|
||||
|
||||
block_content.type_edit:
|
||||
entity.block_content_type.edit_form:
|
||||
path: '/admin/structure/block/block-content/manage/{block_content_type}'
|
||||
defaults:
|
||||
_entity_form: 'block_content_type.edit'
|
||||
|
|
|
@ -38,10 +38,10 @@ use Drupal\block_content\BlockContentInterface;
|
|||
* revision_table = "block_content_revision",
|
||||
* data_table = "block_content_field_data",
|
||||
* links = {
|
||||
* "canonical" = "block_content.edit",
|
||||
* "delete-form" = "block_content.delete",
|
||||
* "edit-form" = "block_content.edit",
|
||||
* "admin-form" = "block_content.type_edit"
|
||||
* "canonical" = "entity.block_content.canonical",
|
||||
* "delete-form" = "entity.block_content.delete_form",
|
||||
* "edit-form" = "entity.block_content.canonical",
|
||||
* "admin-form" = "entity.block_content_type.edit_form"
|
||||
* },
|
||||
* fieldable = TRUE,
|
||||
* translatable = TRUE,
|
||||
|
|
|
@ -35,8 +35,8 @@ use Drupal\block_content\BlockContentTypeInterface;
|
|||
* "label" = "label"
|
||||
* },
|
||||
* links = {
|
||||
* "delete-form" = "block_content.type_delete",
|
||||
* "edit-form" = "block_content.type_edit"
|
||||
* "delete-form" = "entity.block_content_type.delete_form",
|
||||
* "edit-form" = "entity.block_content_type.edit_form"
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue