Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_icons
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ui_icons
Commits
54d4eb50
Commit
54d4eb50
authored
3 months ago
by
Jean Valverde
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3502099
by huangweiqiu, mogtofu33: conflict with gin theme
parent
e4e4acb7
No related branches found
No related tags found
1 merge request
!75
Issue #3502099 by huangweiqiu, mogtofu33: conflict with gin theme
Pipeline
#428939
passed
3 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/ui_icons_menu/ui_icons_menu.module
+11
-0
11 additions, 0 deletions
modules/ui_icons_menu/ui_icons_menu.module
with
11 additions
and
0 deletions
modules/ui_icons_menu/ui_icons_menu.module
+
11
−
0
View file @
54d4eb50
...
...
@@ -9,6 +9,7 @@ use Drupal\Component\Render\FormattableMarkup;
use
Drupal\Core\Entity\EntityTypeInterface
;
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Drupal\Core\Theme\Icon\IconDefinition
;
use
Drupal\Core\Url
;
/**
* Implements hook_help().
...
...
@@ -89,6 +90,16 @@ function ui_icons_menu__preprocess_menu(array &$items): void {
* The menu item.
*/
function
ui_icons_menu__preprocess_menu_item
(
array
&
$item
):
void
{
// Being extra defensive on the menu as other themes/modules can alter in
// unknown ways.
if
(
!
isset
(
$item
[
'url'
]))
{
return
;
}
if
(
!
$item
[
'url'
]
instanceof
Url
)
{
return
;
}
/** @var \Drupal\Core\Url $url */
$url
=
&
$item
[
'url'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment