Commit f3cda09f authored by alexpott's avatar alexpott

Issue #2314859 by Crell: Standardize ConfigTest route names.

parent 3cd58e7d
config_test.entity_tab:
route_name: config_test.entity
entity.config_test.edit_form_tab:
route_name: entity.config_test.edit_form
title: 'Edit'
base_route: config_test.entity
base_route: entity.config_test.edit_form
......@@ -50,8 +50,8 @@ function config_test_entity_type_alter(array &$entity_types) {
// Create a clone of config_test that does not have a status.
$entity_types['config_test_no_status'] = clone $entity_types['config_test'];
$config_test_no_status = &$entity_types['config_test_no_status'];
$config_test_no_status->setLinkTemplate('edit-form', 'config_test.entity_config_test_no_status');
$config_test_no_status->setLinkTemplate('delete-form', 'config_test.entity_delete_config_test_no_status');
$config_test_no_status->setLinkTemplate('edit-form', 'entity.config_test.edit_form_config_test_no_status');
$config_test_no_status->setLinkTemplate('delete-form', 'entity.config_test.delete_form_config_test_no_status');
$keys = $config_test_no_status->getKeys();
unset($keys['status']);
......
......@@ -13,7 +13,7 @@ config_test.entity_add:
requirements:
_access: 'TRUE'
config_test.entity:
entity.config_test.edit_form:
path: '/admin/structure/config_test/manage/{config_test}'
defaults:
_entity_form: config_test
......@@ -21,7 +21,7 @@ config_test.entity:
requirements:
_access: 'TRUE'
config_test.entity_config_test_no_status:
entity.config_test.edit_form_config_test_no_status:
path: '/admin/structure/config_test/manage/{config_test_no_status}'
defaults:
_entity_form: config_test_no_status
......@@ -29,7 +29,7 @@ config_test.entity_config_test_no_status:
requirements:
_access: 'TRUE'
config_test.entity_enable:
entity.config_test.enable:
path: '/admin/structure/config_test/manage/{config_test}/enable'
defaults:
_content: '\Drupal\config_test\ConfigTestController::enable'
......@@ -37,7 +37,7 @@ config_test.entity_enable:
requirements:
_access: 'TRUE'
config_test.entity_disable:
entity.config_test.disable:
path: '/admin/structure/config_test/manage/{config_test}/disable'
defaults:
_content: '\Drupal\config_test\ConfigTestController::disable'
......@@ -45,14 +45,14 @@ config_test.entity_disable:
requirements:
_access: 'TRUE'
config_test.entity_delete:
entity.config_test.delete_form:
path: '/admin/structure/config_test/manage/{config_test}/delete'
defaults:
_entity_form: 'config_test.delete'
requirements:
_access: 'TRUE'
config_test.entity_delete_config_test_no_status:
entity.config_test.delete_form_config_test_no_status:
path: '/admin/structure/config_test/manage/{config_test_no_status}/delete'
defaults:
_entity_form: 'config_test_no_status.delete'
......
......@@ -34,10 +34,10 @@
* "status" = "status"
* },
* links = {
* "edit-form" = "config_test.entity",
* "delete-form" = "config_test.entity_delete",
* "enable" = "config_test.entity_enable",
* "disable" = "config_test.entity_disable"
* "edit-form" = "entity.config_test.edit_form",
* "delete-form" = "entity.config_test.delete_form",
* "enable" = "entity.config_test.enable",
* "disable" = "entity.config_test.disable"
* }
* )
*/
......
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