Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
label_help
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
label_help
Commits
538c2f23
Commit
538c2f23
authored
1 year ago
by
James Wilson
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3450181
: Add Label Help support for Core Media reference fields
parent
bbe3e149
No related branches found
No related tags found
1 merge request
!12
Issue #3450181 by jwilson3: Add Label Help support for Core Media reference fields
Pipeline
#183577
passed
1 year ago
Stage: build
Stage: validate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
label_help.module
+6
-4
6 additions, 4 deletions
label_help.module
with
6 additions
and
4 deletions
label_help.module
+
6
−
4
View file @
538c2f23
...
...
@@ -135,14 +135,16 @@ function label_help_form_alter(&$form, &$form_state, $form_id) {
}
}
// Special case for checkboxes and radios
.
Drupal's
fieldset.html.twig do
// not support the #label_prefix, so use
#field_prefix instead, but be
// careful to not overwrite content
when the #field_prefix is already
// defined.
// Special case for
media,
checkboxes and radios
where
Drupal's
//
fieldset.html.twig does
not support the #label_prefix, so use
//
#field_prefix instead, but be
careful to not overwrite content
//
when the #field_prefix is already
defined.
elseif
(
(
!
empty
(
$item
[
'widget'
][
'#type'
])
&&
!
empty
(
$item
[
'widget'
][
'#title'
])
&&
(
$item
[
'widget'
][
'#type'
]
==
'fieldset'
||
$item
[
'widget'
][
'#type'
]
==
'checkboxes'
||
$item
[
'widget'
][
'#type'
]
==
'radios'
)
...
...
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