Commit 2a0fe0a9 authored by Tom Lopez's avatar Tom Lopez Committed by Greg Boggs
Browse files

Issue #3282501 by T-lo: Code standards failures

parent 0798199f
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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 = '';
            }
          }
+6 −0
Original line number Diff line number Diff line
@@ -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
+2 −2

File changed.

Contains only whitespace changes.