Last active
February 21, 2019 19:17
-
-
Save jodyHamilton/9dfe6e4b8d960450d55480af54a7b08e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php b/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php | |
index 48d6d2c48..f72b86d8a 100644 | |
--- a/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php | |
+++ b/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php | |
@@ -879,7 +879,7 @@ public function formMultipleElements(FieldItemListInterface $items, array &$form | |
if ($this->realItemCount > 0) { | |
$elements += array( | |
- '#theme' => 'field_multiple_value_form', | |
+ '#theme' => $this->fieldDefinition->isOrderable() ? 'field_multiple_value_form' : 'field_multiple_value_without_order_form', | |
'#cardinality_multiple' => $is_multiple, | |
'#title' => $title, | |
'#description' => $description, | |
diff --git a/src/Plugin/Field/FieldWidget/ParagraphsWidget.php b/src/Plugin/Field/FieldWidget/ParagraphsWidget.php | |
index 4a2c63d52..dc3742c4e 100644 | |
--- a/src/Plugin/Field/FieldWidget/ParagraphsWidget.php | |
+++ b/src/Plugin/Field/FieldWidget/ParagraphsWidget.php | |
@@ -1128,7 +1128,7 @@ public function formMultipleElements(FieldItemListInterface $items, array &$form | |
]; | |
$elements += [ | |
- '#theme' => 'field_multiple_value_form', | |
+ '#theme' => $this->fieldDefinition->isOrderable() ? 'field_multiple_value_form' : 'field_multiple_value_without_order_form', | |
'#field_name' => $field_name, | |
'#cardinality' => $cardinality, | |
'#cardinality_multiple' => TRUE, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment