Skip to content
Snippets Groups Projects
Commit 538c2f23 authored by James Wilson's avatar James Wilson
Browse files

Issue #3450181: Add Label Help support for Core Media reference fields

parent bbe3e149
No related branches found
No related tags found
1 merge request!12Issue #3450181 by jwilson3: Add Label Help support for Core Media reference fields
Pipeline #183577 passed
......@@ -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'
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment