🇮🇳India Munavijayalakshmi
🇮🇳India Munavijayalakshmi
+++ b/core/lib/Drupal/Core/Field/WidgetBase.php
@@ -353,6 +369,11 @@ public function extractFormValues(FieldItemListInterface $items, array $form, Fo
+ // Filter out removed items
Comments should (noramlly) begin with a capital letter and end with a full stop / period .
+++ b/core/lib/Drupal/Core/Field/WidgetBase.php
@@ -202,6 +202,22 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f
+ $element['_remove'] = array(
+ '#title' => $this->t('Remove'),
+ '#title_display' => 'invisible',
+ '#type' => 'checkbox',
+ '#default_value' => $items[$delta]->_remove ?: FALSE,
+ '#weight' => 101,
+ );
use short array syntax (new coding standard).