Commit 0798199f authored by Manuel Egío's avatar Manuel Egío Committed by renatog
Browse files

Issue #3272480 by facine, RenatoG: Titles to be replaced while generating...

Issue #3272480 by facine, RenatoG: Titles to be replaced while generating segments doesn't work in all the scenarios
parent 9375c327
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -482,6 +482,10 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
                  $entity = $route_match->getParameter($name);
                  if ($entity instanceof EntityInterface && $entity->hasLinkTemplate('canonical')) {
                    $title = $entity->label();
                    // If the title is to be replaced replaces the title.
                    if (!empty($title) && array_key_exists($title, $replacedTitles)) {
                      $title = $replacedTitles[(string) $title];
                    }
                    if ($title && $this->config->get(EasyBreadcrumbConstants::TRUNCATOR_MODE)) {
                      $title = $this->truncator($title);
                    }