Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -88,7 +88,7 @@
}
#toolbar-item-administration-search-tray div.form-item {
margin: 0.75em ;
margin: 0.75em;
}
#toolbar-item-administration-search-tray input {
......
......@@ -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>'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment