diff --git a/core/modules/block_content/block_content.routing.yml b/core/modules/block_content/block_content.routing.yml index 1628b89..f13572a 100644 --- a/core/modules/block_content/block_content.routing.yml +++ b/core/modules/block_content/block_content.routing.yml @@ -45,6 +45,15 @@ entity.block_content.canonical: requirements: _entity_access: 'block_content.update' +entity.block_content.edit_form: + path: '/block/{block_content}' + defaults: + _entity_form: 'block_content.edit' + options: + _admin_route: TRUE + requirements: + _entity_access: 'block_content.update' + entity.block_content.delete_form: path: '/block/{block_content}/delete' defaults: diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php index fa66635..eb71fce 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMul.php @@ -37,7 +37,7 @@ * "label" = "name" * }, * links = { - * "canonical" = "entity.entity_test_mul.edit_form", + * "canonical" = "entity.entity_test_mul.canonical", * "edit-form" = "entity.entity_test_mul.edit_form", * "delete-form" = "entity.entity_test_mul.delete_form", * }, diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php index 50afa32..0d11126 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php @@ -38,7 +38,7 @@ * "bundle" = "type" * }, * links = { - * "canonical" = "entity.entity_test_mulrev.edit_form", + * "canonical" = "entity.entity_test_mulrev.canonical", * "delete-form" = "entity.entity_test_mulrev.delete_form", * "edit-form" = "entity.entity_test_mulrev.edit_form" * } diff --git a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php index ebb39f2..3f98239 100644 --- a/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php +++ b/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestRev.php @@ -36,7 +36,7 @@ * "label" = "name", * }, * links = { - * "canonical" = "entity.entity_test_rev.edit_form", + * "canonical" = "entity.entity_test_rev.canonical", * "delete-form" = "entity.entity_test_rev.delete_form", * "edit-form" = "entity.entity_test_rev.edit_form" * } diff --git a/core/modules/system/tests/modules/entity_test/src/Routing/EntityTestRoutes.php b/core/modules/system/tests/modules/entity_test/src/Routing/EntityTestRoutes.php index 5902b09..8e4985d 100644 --- a/core/modules/system/tests/modules/entity_test/src/Routing/EntityTestRoutes.php +++ b/core/modules/system/tests/modules/entity_test/src/Routing/EntityTestRoutes.php @@ -33,6 +33,15 @@ public function routes() { array('_permission' => 'administer entity_test content') ); + $routes["entity.$entity_type.canonical"] = new Route( + "$entity_type/manage/{" . $entity_type . '}', + array('_content' => '\Drupal\entity_test\Controller\EntityTestController::testEdit', '_entity_type' => $entity_type), + array('_permission' => 'administer entity_test content'), + array('parameters' => array( + $entity_type => array('type' => 'entity:' . $entity_type), + )) + ); + $routes["entity.$entity_type.edit_form"] = new Route( "$entity_type/manage/{" . $entity_type . '}', array('_content' => '\Drupal\entity_test\Controller\EntityTestController::testEdit', '_entity_type' => $entity_type),