Verified Commit 3cb4be58 authored by Jess's avatar Jess
Browse files

Issue #3530043 by catch, xjm, smustgrave, gábor hojtsy, markconroy, ckrina,...

Issue #3530043 by catch, xjm, smustgrave, gábor hojtsy, markconroy, ckrina, pameeela: Display Umami warning on all pages (not just admin pages)

(cherry picked from commit 296b7aef)
parent d4d050cd
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -159,18 +159,12 @@ public function navigationContentTop(): array {
        '#weight' => 3400,
        '#cache' => [
          'contexts' => [
            'route',
            'user.permissions',
          ],
        ],
      ],
    ];

    // Show warning only on administration pages.
    if (!$this->adminContext->isAdminRoute()) {
      return $build;
    }

    $link_to_help_page = $this->moduleHandler->moduleExists('help') && $this->currentUser->hasPermission('access help pages');
    $url = $link_to_help_page ? Url::fromRoute('help.page', ['name' => 'demo_umami'])->toString()
      : 'https://www.drupal.org/node/2941833';