Commit 33b281b2 authored by Adrian Cid Almaguer's avatar Adrian Cid Almaguer
Browse files

Issue #3366199 by sourabhjain, PrabuEla, nitin_lama, prachi6824, keshavv,...

Issue #3366199 by sourabhjain, PrabuEla, nitin_lama, prachi6824, keshavv, aayushmankotia, adriancid: Fix the issues reported by phpcs
parent 618b16d0
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -102,8 +102,8 @@ function admin_toolbar_links_access_filter_filter_non_accessible_links(array &$i

          // Every child item has been cleared out.
          // Now check, if the given route represents an overview page only,
          // without having functionality on its own. In this case, we can safely
          // unset this item, as there aren't any children left.
          // without having functionality on its own. In this case, we can
          // safely unset this item, as there aren't any children left.
          // This assumption is only valid, when the admin_toolbar module is
          // installed because otherwise we won't have child items at all.
          if (admin_toolbar_links_access_filter_is_overview_page($route_name)) {
@@ -120,7 +120,8 @@ function admin_toolbar_links_access_filter_filter_non_accessible_links(array &$i
          }
        }
      }
    } catch (\UnexpectedValueException $e) {
    }
    catch (\UnexpectedValueException $e) {
      // Skip on errors like "base:block has no corresponding route":
      \Drupal::logger('my_module')->error($e->getMessage());
      continue;
+2 −2
Original line number Diff line number Diff line
@@ -114,8 +114,8 @@ class AdminToolbarToolsHelper {
            // We can't use #lazy_builder here because
            // ToolbarItem::preRenderToolbarItem will insert #attributes before
            // lazy_builder callback and this will produce Exception.
            // This means that for now we always render Local Tasks item even when
            // the tray is empty.
            // This means that for now we always render Local Tasks item even
            // when the tray is empty.
            '#type' => 'link',
            '#title' => $this->t('Local Tasks'),
            '#url' => Url::fromRoute('<none>'),
+1 −1

File changed.

Contains only whitespace changes.