Quellcode durchsuchen

add config test modules

ouidade vor 1 Jahr
Ursprung
Commit
9365ff0a0f
22 geänderte Dateien mit 275 neuen und 184 gelöschten Zeilen
  1. 17 33
      config/sync/core.entity_form_display.node.tableau.default.yml
  2. 52 0
      config/sync/core.entity_form_display.paragraph.tableau.default.yml
  3. 8 29
      config/sync/core.entity_view_display.node.tableau.default.yml
  4. 2 32
      config/sync/core.entity_view_display.node.tableau.full.yml
  5. 2 8
      config/sync/core.entity_view_display.node.tableau.teaser.yml
  6. 47 0
      config/sync/core.entity_view_display.paragraph.tableau.default.yml
  7. 0 21
      config/sync/field.field.node.tableau.field_reference.yml
  8. 25 0
      config/sync/field.field.node.tableau.field_reference_table_1.yml
  9. 6 6
      config/sync/field.field.paragraph.tableau.field_main_.yml
  10. 6 6
      config/sync/field.field.paragraph.tableau.field_methods.yml
  11. 6 6
      config/sync/field.field.paragraph.tableau.field_purpose.yml
  12. 21 0
      config/sync/field.field.paragraph.tableau.field_titre_du_tableau.yml
  13. 21 0
      config/sync/field.storage.node.field_reference_table_1.yml
  14. 5 5
      config/sync/field.storage.paragraph.field_main_.yml
  15. 4 4
      config/sync/field.storage.paragraph.field_methods.yml
  16. 4 4
      config/sync/field.storage.paragraph.field_purpose.yml
  17. 5 5
      config/sync/field.storage.paragraph.field_titre_du_tableau.yml
  18. 10 0
      config/sync/paragraphs.paragraphs_type.tableau.yml
  19. 2 0
      config/sync/user.role.admin.yml
  20. 3 0
      config/sync/user.role.anonymous.yml
  21. 3 0
      config/sync/user.role.authenticated.yml
  22. 26 25
      config/sync/views.view.tableau_avec_paragraph.yml

+ 17 - 33
config/sync/core.entity_form_display.node.tableau.default.yml

@@ -4,12 +4,10 @@ status: true
 dependencies:
   config:
     - field.field.node.tableau.body
-    - field.field.node.tableau.field_main_results
-    - field.field.node.tableau.field_methods
-    - field.field.node.tableau.field_purpose
-    - field.field.node.tableau.field_reference
+    - field.field.node.tableau.field_reference_table_1
     - node.type.tableau
   module:
+    - paragraphs
     - path
     - text
 id: node.tableau.default
@@ -33,37 +31,23 @@ content:
     region: content
     settings: {  }
     third_party_settings: {  }
-  field_main_results:
-    type: text_textarea
-    weight: 125
+  field_reference_table_1:
+    type: paragraphs
+    weight: 126
     region: content
     settings:
-      rows: 5
-      placeholder: ''
-    third_party_settings: {  }
-  field_methods:
-    type: text_textarea
-    weight: 124
-    region: content
-    settings:
-      rows: 5
-      placeholder: ''
-    third_party_settings: {  }
-  field_purpose:
-    type: text_textarea
-    weight: 123
-    region: content
-    settings:
-      rows: 5
-      placeholder: ''
-    third_party_settings: {  }
-  field_reference:
-    type: text_textarea
-    weight: 122
-    region: content
-    settings:
-      rows: 5
-      placeholder: ''
+      title: Paragraphe
+      title_plural: Paragraphs
+      edit_mode: open
+      closed_mode: summary
+      autocollapse: none
+      closed_mode_threshold: 0
+      add_mode: dropdown
+      form_display_mode: default
+      default_paragraph_type: ''
+      features:
+        collapse_edit_all: collapse_edit_all
+        duplicate: duplicate
     third_party_settings: {  }
   langcode:
     type: language_select

+ 52 - 0
config/sync/core.entity_form_display.paragraph.tableau.default.yml

@@ -0,0 +1,52 @@
+uuid: abb97c07-9fbb-49e2-b1ca-c66d8ce208fa
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.paragraph.tableau.field_main_
+    - field.field.paragraph.tableau.field_methods
+    - field.field.paragraph.tableau.field_purpose
+    - field.field.paragraph.tableau.field_titre_du_tableau
+    - paragraphs.paragraphs_type.tableau
+  module:
+    - text
+id: paragraph.tableau.default
+targetEntityType: paragraph
+bundle: tableau
+mode: default
+content:
+  field_main_:
+    type: text_textarea
+    weight: 3
+    region: content
+    settings:
+      rows: 5
+      placeholder: ''
+    third_party_settings: {  }
+  field_methods:
+    type: text_textarea
+    weight: 2
+    region: content
+    settings:
+      rows: 5
+      placeholder: ''
+    third_party_settings: {  }
+  field_purpose:
+    type: text_textarea
+    weight: 1
+    region: content
+    settings:
+      rows: 5
+      placeholder: ''
+    third_party_settings: {  }
+  field_titre_du_tableau:
+    type: text_textarea
+    weight: 0
+    region: content
+    settings:
+      rows: 5
+      placeholder: ''
+    third_party_settings: {  }
+hidden:
+  created: true
+  status: true

+ 8 - 29
config/sync/core.entity_view_display.node.tableau.default.yml

@@ -4,12 +4,10 @@ status: true
 dependencies:
   config:
     - field.field.node.tableau.body
-    - field.field.node.tableau.field_main_results
-    - field.field.node.tableau.field_methods
-    - field.field.node.tableau.field_purpose
-    - field.field.node.tableau.field_reference
+    - field.field.node.tableau.field_reference_table_1
     - node.type.tableau
   module:
+    - entity_reference_revisions
     - text
     - user
 id: node.tableau.default
@@ -24,33 +22,14 @@ content:
     third_party_settings: {  }
     weight: 101
     region: content
-  field_main_results:
-    type: text_default
+  field_reference_table_1:
+    type: entity_reference_revisions_entity_view
     label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 105
-    region: content
-  field_methods:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 104
-    region: content
-  field_purpose:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 103
-    region: content
-  field_reference:
-    type: text_default
-    label: above
-    settings: {  }
+    settings:
+      view_mode: default
+      link: ''
     third_party_settings: {  }
-    weight: 102
+    weight: 106
     region: content
   links:
     settings: {  }

+ 2 - 32
config/sync/core.entity_view_display.node.tableau.full.yml

@@ -5,10 +5,7 @@ dependencies:
   config:
     - core.entity_view_mode.node.full
     - field.field.node.tableau.body
-    - field.field.node.tableau.field_main_results
-    - field.field.node.tableau.field_methods
-    - field.field.node.tableau.field_purpose
-    - field.field.node.tableau.field_reference
+    - field.field.node.tableau.field_reference_table_1
     - node.type.tableau
   module:
     - text
@@ -25,39 +22,12 @@ content:
     third_party_settings: {  }
     weight: 101
     region: content
-  field_main_results:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 105
-    region: content
-  field_methods:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 104
-    region: content
-  field_purpose:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 103
-    region: content
-  field_reference:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 102
-    region: content
   links:
     settings: {  }
     third_party_settings: {  }
     weight: 100
     region: content
 hidden:
+  field_reference_table_1: true
   langcode: true
   search_api_excerpt: true

+ 2 - 8
config/sync/core.entity_view_display.node.tableau.teaser.yml

@@ -5,10 +5,7 @@ dependencies:
   config:
     - core.entity_view_mode.node.teaser
     - field.field.node.tableau.body
-    - field.field.node.tableau.field_main_results
-    - field.field.node.tableau.field_methods
-    - field.field.node.tableau.field_purpose
-    - field.field.node.tableau.field_reference
+    - field.field.node.tableau.field_reference_table_1
     - node.type.tableau
   module:
     - text
@@ -32,9 +29,6 @@ content:
     weight: 100
     region: content
 hidden:
-  field_main_results: true
-  field_methods: true
-  field_purpose: true
-  field_reference: true
+  field_reference_table_1: true
   langcode: true
   search_api_excerpt: true

+ 47 - 0
config/sync/core.entity_view_display.paragraph.tableau.default.yml

@@ -0,0 +1,47 @@
+uuid: ce676bb9-f3c0-403f-954f-622bff960730
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.paragraph.tableau.field_main_
+    - field.field.paragraph.tableau.field_methods
+    - field.field.paragraph.tableau.field_purpose
+    - field.field.paragraph.tableau.field_titre_du_tableau
+    - paragraphs.paragraphs_type.tableau
+  module:
+    - text
+id: paragraph.tableau.default
+targetEntityType: paragraph
+bundle: tableau
+mode: default
+content:
+  field_main_:
+    type: text_default
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    weight: 2
+    region: content
+  field_methods:
+    type: text_default
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    weight: 1
+    region: content
+  field_purpose:
+    type: text_default
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    weight: 0
+    region: content
+  field_titre_du_tableau:
+    type: text_default
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    weight: 3
+    region: content
+hidden:
+  search_api_excerpt: true

+ 0 - 21
config/sync/field.field.node.tableau.field_reference.yml

@@ -1,21 +0,0 @@
-uuid: 610a6104-ae7b-45e7-9bab-440703a948b9
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_reference
-    - node.type.tableau
-  module:
-    - text
-id: node.tableau.field_reference
-field_name: field_reference
-entity_type: node
-bundle: tableau
-label: Référence
-description: ''
-required: true
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings: {  }
-field_type: text_long

+ 25 - 0
config/sync/field.field.node.tableau.field_reference_table_1.yml

@@ -0,0 +1,25 @@
+uuid: 2031bbc1-3c46-4ce2-a454-95361670a3de
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_reference_table_1
+    - node.type.tableau
+  module:
+    - entity_reference_revisions
+id: node.tableau.field_reference_table_1
+field_name: field_reference_table_1
+entity_type: node
+bundle: tableau
+label: 'Référence table 1'
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:paragraph'
+  handler_settings:
+    target_bundles: null
+    negate: 0
+field_type: entity_reference_revisions

+ 6 - 6
config/sync/field.field.node.tableau.field_main_results.yml → config/sync/field.field.paragraph.tableau.field_main_.yml

@@ -1,15 +1,15 @@
-uuid: 5dab50ba-df3f-435a-9059-a38914ada5c3
+uuid: d0a46c73-ab78-469c-8fe4-fcb598285156
 langcode: fr
 status: true
 dependencies:
   config:
-    - field.storage.node.field_main_results
-    - node.type.tableau
+    - field.storage.paragraph.field_main_
+    - paragraphs.paragraphs_type.tableau
   module:
     - text
-id: node.tableau.field_main_results
-field_name: field_main_results
-entity_type: node
+id: paragraph.tableau.field_main_
+field_name: field_main_
+entity_type: paragraph
 bundle: tableau
 label: 'Main results'
 description: ''

+ 6 - 6
config/sync/field.field.node.tableau.field_methods.yml → config/sync/field.field.paragraph.tableau.field_methods.yml

@@ -1,17 +1,17 @@
-uuid: 7f3f3947-f904-4d20-aab3-71ea745d0f4c
+uuid: ccb9c297-7aad-43f1-ba63-a277ed7c1674
 langcode: fr
 status: true
 dependencies:
   config:
-    - field.storage.node.field_methods
-    - node.type.tableau
+    - field.storage.paragraph.field_methods
+    - paragraphs.paragraphs_type.tableau
   module:
     - text
-id: node.tableau.field_methods
+id: paragraph.tableau.field_methods
 field_name: field_methods
-entity_type: node
+entity_type: paragraph
 bundle: tableau
-label: Methods
+label: methods
 description: ''
 required: false
 translatable: false

+ 6 - 6
config/sync/field.field.node.tableau.field_purpose.yml → config/sync/field.field.paragraph.tableau.field_purpose.yml

@@ -1,19 +1,19 @@
-uuid: 692d49f2-9308-449e-a7f9-e79c2dc59917
+uuid: fe988a78-0522-4ff6-9641-94eaf0686d49
 langcode: fr
 status: true
 dependencies:
   config:
-    - field.storage.node.field_purpose
-    - node.type.tableau
+    - field.storage.paragraph.field_purpose
+    - paragraphs.paragraphs_type.tableau
   module:
     - text
-id: node.tableau.field_purpose
+id: paragraph.tableau.field_purpose
 field_name: field_purpose
-entity_type: node
+entity_type: paragraph
 bundle: tableau
 label: Purpose
 description: ''
-required: true
+required: false
 translatable: false
 default_value: {  }
 default_value_callback: ''

+ 21 - 0
config/sync/field.field.paragraph.tableau.field_titre_du_tableau.yml

@@ -0,0 +1,21 @@
+uuid: c6a2ee3f-0b5e-40c9-9c13-1a87679edd81
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_titre_du_tableau
+    - paragraphs.paragraphs_type.tableau
+  module:
+    - text
+id: paragraph.tableau.field_titre_du_tableau
+field_name: field_titre_du_tableau
+entity_type: paragraph
+bundle: tableau
+label: 'Reference de l''entrée '
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: text_long

+ 21 - 0
config/sync/field.storage.node.field_reference_table_1.yml

@@ -0,0 +1,21 @@
+uuid: cf03d467-d492-46f5-95e1-dc1d4ad02c34
+langcode: fr
+status: true
+dependencies:
+  module:
+    - entity_reference_revisions
+    - node
+    - paragraphs
+id: node.field_reference_table_1
+field_name: field_reference_table_1
+entity_type: node
+type: entity_reference_revisions
+settings:
+  target_type: paragraph
+module: entity_reference_revisions
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 5 - 5
config/sync/field.storage.node.field_main_results.yml → config/sync/field.storage.paragraph.field_main_.yml

@@ -1,13 +1,13 @@
-uuid: 298b2393-7dda-4e2d-bc7c-f545a1425eb3
+uuid: 0ee12f79-a1a3-4cb4-bf26-911d75f4cdb3
 langcode: fr
 status: true
 dependencies:
   module:
-    - node
+    - paragraphs
     - text
-id: node.field_main_results
-field_name: field_main_results
-entity_type: node
+id: paragraph.field_main_
+field_name: field_main_
+entity_type: paragraph
 type: text_long
 settings: {  }
 module: text

+ 4 - 4
config/sync/field.storage.node.field_methods.yml → config/sync/field.storage.paragraph.field_methods.yml

@@ -1,13 +1,13 @@
-uuid: 62425722-cc2e-4130-9189-e72c1d052ba7
+uuid: 9a6213a1-6404-456e-b753-ad6d84078cad
 langcode: fr
 status: true
 dependencies:
   module:
-    - node
+    - paragraphs
     - text
-id: node.field_methods
+id: paragraph.field_methods
 field_name: field_methods
-entity_type: node
+entity_type: paragraph
 type: text_long
 settings: {  }
 module: text

+ 4 - 4
config/sync/field.storage.node.field_purpose.yml → config/sync/field.storage.paragraph.field_purpose.yml

@@ -1,13 +1,13 @@
-uuid: d7cb42af-501e-4f7e-a860-3dff59ed6f94
+uuid: 08fdeb8d-0fd3-461a-b37b-34dff867677c
 langcode: fr
 status: true
 dependencies:
   module:
-    - node
+    - paragraphs
     - text
-id: node.field_purpose
+id: paragraph.field_purpose
 field_name: field_purpose
-entity_type: node
+entity_type: paragraph
 type: text_long
 settings: {  }
 module: text

+ 5 - 5
config/sync/field.storage.node.field_reference.yml → config/sync/field.storage.paragraph.field_titre_du_tableau.yml

@@ -1,13 +1,13 @@
-uuid: c8fd296c-b252-4681-a3f6-731c3ae7c895
+uuid: f49d222b-3955-4004-9ae0-8d4393348191
 langcode: fr
 status: true
 dependencies:
   module:
-    - node
+    - paragraphs
     - text
-id: node.field_reference
-field_name: field_reference
-entity_type: node
+id: paragraph.field_titre_du_tableau
+field_name: field_titre_du_tableau
+entity_type: paragraph
 type: text_long
 settings: {  }
 module: text

+ 10 - 0
config/sync/paragraphs.paragraphs_type.tableau.yml

@@ -0,0 +1,10 @@
+uuid: eaa76afc-bfd0-4310-9a22-92f45aae1c12
+langcode: fr
+status: true
+dependencies: {  }
+id: tableau
+label: 'entrées pour tableau'
+icon_uuid: null
+icon_default: null
+description: ''
+behavior_plugins: {  }

+ 2 - 0
config/sync/user.role.admin.yml

@@ -3,11 +3,13 @@ langcode: fr
 status: true
 dependencies:
   config:
+    - filter.format.wysiwyg
     - node.type.static
   module:
     - actions_permissions
     - content_translation
     - file
+    - filter
     - node
     - system
     - toolbar

+ 3 - 0
config/sync/user.role.anonymous.yml

@@ -2,8 +2,11 @@ uuid: 0c77e82a-6e31-4200-b24e-905bfa649b20
 langcode: fr
 status: true
 dependencies:
+  config:
+    - filter.format.wysiwyg
   module:
     - devel
+    - filter
     - system
 _core:
   default_config_hash: g0EHI5W4j_ZUCTvSQWEDEKVvC0g1Glt4YWZt_ihyvog

+ 3 - 0
config/sync/user.role.authenticated.yml

@@ -2,8 +2,11 @@ uuid: add9b3cd-5c20-4fe1-8388-7b0a4e521c1e
 langcode: fr
 status: true
 dependencies:
+  config:
+    - filter.format.wysiwyg
   module:
     - devel
+    - filter
     - system
 _core:
   default_config_hash: NlAJ1uthbRfNcM-M7UCYixmpTNgZnkuQKQymrXPv7UY

+ 26 - 25
config/sync/views.view.tableau.yml → config/sync/views.view.tableau_avec_paragraph.yml

@@ -1,4 +1,4 @@
-uuid: ed60bb41-9c01-4805-a5c9-5dcbd5fa8322
+uuid: 597586b3-9788-484c-97d0-d03d16a895c4
 langcode: fr
 status: true
 dependencies:
@@ -7,8 +7,8 @@ dependencies:
   module:
     - node
     - user
-id: tableau
-label: tableau
+id: tableau_avec_paragraph
+label: 'Tableau avec paragraph'
 module: views
 description: ''
 tag: ''
@@ -21,7 +21,7 @@ display:
     display_plugin: default
     position: 0
     display_options:
-      title: tableau
+      title: 'Tableau avec paragraph'
       fields:
         title:
           id: title
@@ -71,10 +71,23 @@ display:
           separator: ', '
           field_api_classes: false
       pager:
-        type: some
+        type: mini
         options:
           offset: 0
-          items_per_page: 5
+          items_per_page: 10
+          total_pages: null
+          id: 0
+          tags:
+            next: ››
+            previous: ‹‹
+          expose:
+            items_per_page: false
+            items_per_page_label: 'Éléments par page'
+            items_per_page_options: '5, 10, 25, 50'
+            items_per_page_options_all: false
+            items_per_page_options_all_label: '- Tout -'
+            offset: false
+            offset_label: Décalage
       exposed_form:
         type: basic
         options:
@@ -139,22 +152,8 @@ display:
             operator_list: {  }
       style:
         type: default
-        options:
-          grouping:
-            -
-              field: title
-              rendered: true
-              rendered_strip: false
-          row_class: ''
-          default_row_class: true
       row:
         type: fields
-        options:
-          default_field_elements: false
-          inline:
-            title: title
-          separator: ''
-          hide_empty: true
       query:
         type: views_query
         options:
@@ -166,27 +165,29 @@ display:
       relationships: {  }
       header: {  }
       footer: {  }
-      display_extenders: {  }
     cache_metadata:
       max-age: -1
       contexts:
         - 'languages:language_content'
         - 'languages:language_interface'
+        - url.query_args
         - 'user.node_grants:view'
         - user.permissions
       tags: {  }
-  block_1:
-    id: block_1
-    display_title: Block
-    display_plugin: block
+  page_1:
+    id: page_1
+    display_title: Page
+    display_plugin: page
     position: 1
     display_options:
       display_extenders: {  }
+      path: tableau-avec-paragraph
     cache_metadata:
       max-age: -1
       contexts:
         - 'languages:language_content'
         - 'languages:language_interface'
+        - url.query_args
         - 'user.node_grants:view'
         - user.permissions
       tags: {  }