Loading src/EasyBreadcrumbBuilder.php +4 −0 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
src/EasyBreadcrumbBuilder.php +4 −0 Original line number Diff line number Diff line Loading @@ -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); } Loading