diff --git a/core/lib/Drupal/Core/Field/WidgetBase.php b/core/lib/Drupal/Core/Field/WidgetBase.php index dc95d86..9938433 100644 --- a/core/lib/Drupal/Core/Field/WidgetBase.php +++ b/core/lib/Drupal/Core/Field/WidgetBase.php @@ -163,10 +163,21 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f for ($delta = 0; $delta <= $max; $delta++) { // For multiple fields, title and description are handled by the wrapping // table. - $element = array( - '#title' => $is_multiple ? '' : $title, - '#description' => $is_multiple ? '' : $description, - ); + if ($is_multiple) { + $element = array( + '#title' => $title . ' ' . t('(value @number)', array('@number' => $delta + 1)), + '#title_display' => 'invisible', + '#description' => '', + ); + } + else { + $element = array( + '#title' => $title, + '#title_display' => 'before', + '#description' => $description, + ); + } + $element = $this->formSingleElement($items, $delta, $element, $form, $form_state); if ($element) {