Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
flag
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
flag
Merge requests
!94
Reroll The patch as Per The
#2
.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Reroll The patch as Per The
#2
.
issue/flag-3461951:3461951-typeerror-drupalflagpluginactionlinkajaxactionlinkgetasflaglink
into
8.x-4.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
Reroll The patch as Per The #2.
Prem Suthar
requested to merge
issue/flag-3461951:3461951-typeerror-drupalflagpluginactionlinkajaxactionlinkgetasflaglink
into
8.x-4.x
9 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Closes
#3461951
0
0
Merge request reports
Compare
8.x-4.x
8.x-4.x (HEAD)
and
latest version
latest version
57af15d0
1 commit,
9 months ago
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/FlagLinkBuilder.php
+
4
−
1
View file @ 18a9c2d9
Edit in single-file editor
Open in Web IDE
Show full file
@@ -52,7 +52,10 @@ class FlagLinkBuilder implements FlagLinkBuilderInterface, TrustedCallbackInterf
$flag
=
$this
->
flagService
->
getFlagById
(
$flag_id
);
$link_type_plugin
=
$flag
->
getLinkTypePlugin
();
return
$link_type_plugin
->
getAsFlagLink
(
$flag
,
$entity
,
$view_mode
);
if
(
$entity
)
{
return
$link_type_plugin
->
getAsFlagLink
(
$flag
,
$entity
,
$view_mode
);
}
return
[];
}
}
Loading