Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
manage_display
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
manage_display
Commits
a27ffaf2
Commit
a27ffaf2
authored
2 years ago
by
Adam Shepherd
Browse files
Options
Downloads
Patches
Plain Diff
Tidy up
parent
1f77e301
No related branches found
No related tags found
1 merge request
!7
Resolve #3347194 "Implement hookhelp"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manage_display.module
+4
-3
4 additions, 3 deletions
manage_display.module
with
4 additions
and
3 deletions
manage_display.module
+
4
−
3
View file @
a27ffaf2
...
...
@@ -41,7 +41,7 @@ function manage_display_entity_type_build(array &$entity_types) {
// Set user name as a label else it gets printed twice on the user page.
$keys
=
$entity_types
[
'user'
]
->
get
(
'entity_keys'
);
$keys
[
'label'
]
=
'name'
;
$keys
=
$entity_types
[
'user'
]
->
set
(
'entity_keys'
,
$keys
);
$entity_types
[
'user'
]
->
set
(
'entity_keys'
,
$keys
);
}
}
...
...
@@ -161,8 +161,9 @@ function template_preprocess_submitted(&$variables) {
* Prepares variables for 'in_reply_to' field formatter template.
*/
function
template_preprocess_in_reply_to
(
&
$variables
)
{
// @todo Remove the forced rendering. Find out how to render within
// translation in the template.
// Force rendering.
// @todo Remove after fixing core bug.
// @see https://www.drupal.org/project/drupal/issues/2334319
$renderer
=
\Drupal
::
service
(
'renderer'
);
$variables
[
'subject'
]
=
$renderer
->
render
(
$variables
[
'elements'
][
'subject'
]);
$variables
[
'uid'
]
=
$renderer
->
render
(
$variables
[
'elements'
][
'uid'
]);
...
...
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