In a paragraph I have an image field for which the title field is enabled and required. I need to alter the label of this title field to replace "Title" by "Caption"
I tried to use the hook_field_widget_single_element_WIDGET_TYPE_form_alter()
to achieve this but all I see related to this title is
$element['subform']['image']['widget'][0]['#title_field'] = (bool) 1 $element['subform']['image']['widget'][0]['#title_field_required'] = (bool) 1
I am wondering how I can alter that label in this paragraph context. Any help would be appreciated.