소스 검색

inline entity form for entity paragraph in concernement

bach 2 년 전
부모
커밋
69156838a0

+ 13 - 4
src/config/sync/core.entity_form_display.paragraph.entite_concernement.default.yml

@@ -8,6 +8,8 @@ dependencies:
     - field.field.paragraph.entite_concernement.field_menace_maintien_degres
     - field.field.paragraph.entite_concernement.field_prise
     - paragraphs.paragraphs_type.entite_concernement
+  module:
+    - inline_entity_form
 id: paragraph.entite_concernement.default
 targetEntityType: paragraph
 bundle: entite_concernement
@@ -20,14 +22,21 @@ content:
     settings: {  }
     third_party_settings: {  }
   field_entite:
-    type: entity_reference_autocomplete
+    type: inline_entity_form_complex
     weight: 0
     region: content
     settings:
+      form_mode: default
+      override_labels: false
+      label_singular: ''
+      label_plural: ''
+      allow_new: true
+      allow_existing: false
       match_operator: CONTAINS
-      match_limit: 10
-      size: 60
-      placeholder: ''
+      allow_duplicate: false
+      collapsible: false
+      collapsed: false
+      revision: false
     third_party_settings: {  }
   field_menace_maintien_degres:
     type: number

+ 1 - 0
src/config/sync/paragraphs.paragraphs_type.entite_concernement.yml

@@ -7,4 +7,5 @@ label: 'Entité intégrée'
 icon_uuid: null
 icon_default: null
 description: 'Paragraphe qui pointe un CT entité et y ajoute les infos propre au concernement'
+save_empty: false
 behavior_plugins: {  }