Commit f3cda09f authored by alexpott's avatar alexpott

Issue #2314859 by Crell: Standardize ConfigTest route names.

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