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
Merge requests
!57
Issue
#3489123
by grimreaper, mogtofu33: Icon not found when rendered from renderable array
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3489123
by grimreaper, mogtofu33: Icon not found when rendered from renderable array
issue/ui_icons-3489123:3489123-icon-not-found
into
1.0.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Jean Valverde
requested to merge
issue/ui_icons-3489123:3489123-icon-not-found
into
1.0.x
7 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#3489123
0
0
Merge request reports
Compare
1.0.x
1.0.x (base)
and
latest version
latest version
ccc036de
1 commit,
7 months ago
1 file
+
2
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/ui_icons_backport/src/Element/Icon.php
+
2
−
4
Options
@@ -60,10 +60,8 @@ class Icon extends RenderElementBase {
public
static
function
preRenderIcon
(
array
$element
):
array
{
$icon_full_id
=
IconDefinition
::
createIconId
(
$element
[
'#pack_id'
],
$element
[
'#icon_id'
]);
$iconCollector
=
\Drupal
::
service
(
'Drupal\Core\Theme\Icon\IconCollector'
);
$icon
=
$iconCollector
->
get
(
$icon_full_id
);
if
(
!
$icon
)
{
$pluginManagerIconPack
=
\Drupal
::
service
(
'plugin.manager.icon_pack'
);
if
(
!
$icon
=
$pluginManagerIconPack
->
getIcon
(
$icon_full_id
))
{
return
$element
;
}
Loading