Loading src/EasyBreadcrumbBuilder.php +8 −2 Original line number Diff line number Diff line Loading @@ -368,13 +368,19 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface { // If URL is invalid, then display warning and disable the link. if (!UrlHelper::isValid($url)) { $this->messenger->addWarning($this->t("EasyBreadcrumb: Custom crumb for @path URL '@url' is invalid.", ['@path' => $path, '@url' => $url])); $this->messenger->addWarning($this->t( "EasyBreadcrumb: Custom crumb for @path URL '@url' is invalid.", ['@path' => $path, '@url' => $url] )); $url = ''; } // If URL is not start with slash then display warning // and disable the link. if ($url[0] != '/') { $this->messenger->addWarning($this->t("EasyBreadcrumb: Custom crumb for @path URL '@url' should start with slash(/).", ['@path' => $path, '@url' => $url])); $this->messenger->addWarning($this->t( "EasyBreadcrumb: Custom crumb for @path URL '@url' should start with slash(/).", ['@path' => $path, '@url' => $url] )); $url = ''; } } Loading src/TitleResolver.php +6 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,12 @@ class TitleResolver extends ControllerTitleResolver { /** * Constructs a new EntityDisplayRebuilder. * * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver * The controller resolver. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * The translation manager. * @param \Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver * The argument resolver. * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity manager. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory Loading src/EasyBreadcrumbStructuredDataJsonLd.php +2 −2 File changed.Contains only whitespace changes. Show changes Loading
src/EasyBreadcrumbBuilder.php +8 −2 Original line number Diff line number Diff line Loading @@ -368,13 +368,19 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface { // If URL is invalid, then display warning and disable the link. if (!UrlHelper::isValid($url)) { $this->messenger->addWarning($this->t("EasyBreadcrumb: Custom crumb for @path URL '@url' is invalid.", ['@path' => $path, '@url' => $url])); $this->messenger->addWarning($this->t( "EasyBreadcrumb: Custom crumb for @path URL '@url' is invalid.", ['@path' => $path, '@url' => $url] )); $url = ''; } // If URL is not start with slash then display warning // and disable the link. if ($url[0] != '/') { $this->messenger->addWarning($this->t("EasyBreadcrumb: Custom crumb for @path URL '@url' should start with slash(/).", ['@path' => $path, '@url' => $url])); $this->messenger->addWarning($this->t( "EasyBreadcrumb: Custom crumb for @path URL '@url' should start with slash(/).", ['@path' => $path, '@url' => $url] )); $url = ''; } } Loading
src/TitleResolver.php +6 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,12 @@ class TitleResolver extends ControllerTitleResolver { /** * Constructs a new EntityDisplayRebuilder. * * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver * The controller resolver. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * The translation manager. * @param \Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver * The argument resolver. * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity manager. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory Loading
src/EasyBreadcrumbStructuredDataJsonLd.php +2 −2 File changed.Contains only whitespace changes. Show changes