- $entity_type_id => [
- 'type' => 'entity:' . $entity_type_id,
- 'load_latest_revision' => $load_latest_revision,
+ '_admin_route' => $is_admin,
+ ]
+ );
+ $collection->add("entity.$entity_type_id.content_translation_add", $route);
+ }
+
+ if ($entity_type->hasLinkTemplate('drupal:content-translation-edit')) {
+ $route = new Route(
+ $entity_type->getLinkTemplate('drupal:content-translation-edit'),
+ [
+ '_controller' => '\Drupal\content_translation\Controller\ContentTranslationController::edit',
+ 'language' => NULL,
+ '_title' => 'Edit',
+ 'entity_type_id' => $entity_type_id,
+ ],
+ [
+ '_access_content_translation_manage' => 'update',
+ ],
+ [
+ 'parameters' => [
+ 'language' => [
+ 'type' => 'language',
+ ],
+ $entity_type_id => [
+ 'type' => 'entity:' . $entity_type_id,
+ 'load_latest_revision' => $load_latest_revision,
+ ],