diff --git a/core/modules/media/media.module b/core/modules/media/media.module index 2bd4e0eec9..900ffc1889 100644 --- a/core/modules/media/media.module +++ b/core/modules/media/media.module @@ -184,7 +184,7 @@ function media_form_field_ui_field_storage_add_form_alter(&$form, FormStateInter /** * Implements hook_field_widget_multiple_WIDGET_TYPE_form_alter(). */ -function media_field_widget_multiple_entity_reference_autocomplete_form_alter(array &$elements, FormStateInterface $form_state, array $context) { +function media_field_widget_multivalue_entity_reference_autocomplete_form_alter(array &$elements, FormStateInterface $form_state, array $context) { // Add a description to inform users where they can find and add new media. // Only add the description on autocomplete widgets for entity reference // field pointing to media. diff --git a/core/modules/media/templates/media-reference-help.html.twig b/core/modules/media/templates/media-reference-help.html.twig index 6392148426..6d4e744f40 100644 --- a/core/modules/media/templates/media-reference-help.html.twig +++ b/core/modules/media/templates/media-reference-help.html.twig @@ -56,8 +56,8 @@

{% if multiple %} {% if description.content %} - {{ description.content }} - {% endif %} + {{ description.content }} + {% endif %} {% if button %}
{{ button }}
{% endif %}