Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_reference_edit_link
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
entity_reference_edit_link
Commits
898fee35
Commit
898fee35
authored
10 months ago
by
Kostia Bohach
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3437331
: Issue with edit button display
parent
44db6bd2
No related branches found
Branches containing commit
Tags
1.1.1
Tags containing commit
1 merge request
!11
Issue #3437331: Issue with edit button display
Pipeline
#134318
passed
10 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity_reference_edit_link.module
+9
-1
9 additions, 1 deletion
entity_reference_edit_link.module
with
9 additions
and
1 deletion
entity_reference_edit_link.module
+
9
−
1
View file @
898fee35
...
...
@@ -22,7 +22,7 @@ function entity_reference_edit_link_preprocess_field_multiple_value_form(&$varia
}
// Adds link column to the table header.
$variables
[
'table'
][
'#header'
][]
=
t
(
'Edit
Link
'
,
[],
[
'context'
=>
'Link'
]);
$variables
[
'table'
][
'#header'
][]
=
t
(
'Edit
Entity
'
,
[],
[
'context'
=>
'Link'
]);
$element
=
$variables
[
'element'
];
// Copied some part of the code from the another hook just to add the correct
// values to the render array.
...
...
@@ -46,9 +46,17 @@ function entity_reference_edit_link_preprocess_field_multiple_value_form(&$varia
unset
(
$item
[
'_weight'
]);
unset
(
$item
[
'_link'
]);
// Render actions in a separate column.
$actions
=
[];
if
(
isset
(
$item
[
'_actions'
]))
{
$actions
=
$item
[
'_actions'
];
unset
(
$item
[
'_actions'
]);
}
$cells
=
[
[
'data'
=>
''
,
'class'
=>
[
'field-multiple-drag'
]],
[
'data'
=>
$item
],
[
'data'
=>
$actions
],
[
'data'
=>
$delta_element
,
'class'
=>
[
'delta-order'
]],
// Adds link element to the render array.
[
'data'
=>
$link_element
,
'class'
=>
[
'reference-link'
]],
...
...
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