Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lupus_ce_renderer
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
lupus_ce_renderer
Commits
01014f5e
Commit
01014f5e
authored
1 year ago
by
Ciprian Stavovei
Committed by
Wolfgang Ziegler
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3348077
: Local tasks links should be the same as the admin interface
parent
0025b80b
No related branches found
No related tags found
1 merge request
!30
Issue #3348077: Local tasks links should be the same as the admin interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CustomElementsRenderer.php
+4
-0
4 additions, 0 deletions
src/CustomElementsRenderer.php
with
4 additions
and
0 deletions
src/CustomElementsRenderer.php
+
4
−
0
View file @
01014f5e
...
...
@@ -334,6 +334,10 @@ class CustomElementsRenderer {
private
function
prepareLocalTaskLinks
(
array
$render_links
)
{
$local_tasks
=
[];
if
(
!
empty
(
$render_links
))
{
// Order the links by weight.
usort
(
$render_links
,
function
(
array
$link1
,
array
$link2
):
int
{
return
$link1
[
'#weight'
]
<=>
$link2
[
'#weight'
];
});
foreach
(
$render_links
as
$render_link
)
{
/** @var \Drupal\Core\Access\AccessResult $access */
$access
=
$render_link
[
'#access'
]
??
FALSE
;
...
...
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