Verified Commit 8bd8fa25 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3278032 by andregp, bkline@rksystems.com: Remove dead code from ContentTranslationController

parent 4305d900
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ public function overview(RouteMatchInterface $route_match, $entity_type_id = NUL
          $source = $metadata->getSource() ?: LanguageInterface::LANGCODE_NOT_SPECIFIED;
          $is_original = $langcode == $original;
          $label = $entity->getTranslation($langcode)->label() ?? $entity->id();
          $link = isset($links->links[$langcode]['url']) ? $links->links[$langcode] : ['url' => $entity->toUrl()];
          $link = ['url' => $entity->toUrl()];
          if (!empty($link['url'])) {
            $link['url']->setOption('language', $language);
            $row_title = Link::fromTextAndUrl($label, $link['url'])->toString();