diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php index ae31d6e..987a66d 100644 --- a/core/modules/views/src/EntityViewsData.php +++ b/core/modules/views/src/EntityViewsData.php @@ -268,7 +268,7 @@ protected function addEntityLinks(array &$data) { ]; } if ($this->entityType->hasLinkTemplate('drupal:content-translation-overview')) { - $data['translation_link' . $entity_type_id] = [ + $data['translation_link'] = [ 'field' => [ 'title' => $this->t('Link to translate @entity_type_label', $t_arguments), 'help' => $this->t('Provide a translation link to the @entity_type_label.', $t_arguments), diff --git a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php index e8e49d6..de6a7ba 100644 --- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php +++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php @@ -724,7 +724,7 @@ public function testEntityLinks() { $this->assertEquals('entity_link', $data['entity_test']['view_entity_test']['field']['id']); $this->assertEquals('entity_link_edit', $data['entity_test']['edit_entity_test']['field']['id']); $this->assertEquals('entity_link_delete', $data['entity_test']['delete_entity_test']['field']['id']); - $this->assertEquals('content_translation_link', $data['entity_test']['translate_entity_test']['field']['id']); + $this->assertEquals('content_translation_link', $data['entity_test']['translation_link']['field']['id']); } /**