From 2cd5a7812b12dc19808c5c1bd2c8d6bad3afb586 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 5 Jul 2024 09:59:18 +0200 Subject: [PATCH] =?UTF-8?q?type=20d'=C3=A9tape=20d=C3=A9roulement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ay.paragraph.phase_deroulement.default.yml | 9 +++++- ...ay.paragraph.phase_deroulement.default.yml | 11 ++++++- ...paragraph.phase_deroulement.field_type.yml | 21 +++++++++++++ .../field.storage.paragraph.field_type.yml | 30 +++++++++++++++++++ 4 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 config/sync/field.field.paragraph.phase_deroulement.field_type.yml create mode 100644 config/sync/field.storage.paragraph.field_type.yml diff --git a/config/sync/core.entity_form_display.paragraph.phase_deroulement.default.yml b/config/sync/core.entity_form_display.paragraph.phase_deroulement.default.yml index a8cf100..7fd0ad4 100644 --- a/config/sync/core.entity_form_display.paragraph.phase_deroulement.default.yml +++ b/config/sync/core.entity_form_display.paragraph.phase_deroulement.default.yml @@ -11,6 +11,7 @@ dependencies: - field.field.paragraph.phase_deroulement.field_date_de_moi - field.field.paragraph.phase_deroulement.field_description - field.field.paragraph.phase_deroulement.field_titre + - field.field.paragraph.phase_deroulement.field_type - paragraphs.paragraphs_type.phase_deroulement module: - text @@ -69,7 +70,7 @@ content: third_party_settings: { } field_description: type: text_textarea - weight: 7 + weight: 8 region: content settings: rows: 5 @@ -83,6 +84,12 @@ content: size: 60 placeholder: '' third_party_settings: { } + field_type: + type: options_select + weight: 7 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_view_display.paragraph.phase_deroulement.default.yml b/config/sync/core.entity_view_display.paragraph.phase_deroulement.default.yml index f2b5ae9..061dfba 100644 --- a/config/sync/core.entity_view_display.paragraph.phase_deroulement.default.yml +++ b/config/sync/core.entity_view_display.paragraph.phase_deroulement.default.yml @@ -11,8 +11,10 @@ dependencies: - field.field.paragraph.phase_deroulement.field_date_de_moi - field.field.paragraph.phase_deroulement.field_description - field.field.paragraph.phase_deroulement.field_titre + - field.field.paragraph.phase_deroulement.field_type - paragraphs.paragraphs_type.phase_deroulement module: + - options - text id: paragraph.phase_deroulement.default targetEntityType: paragraph @@ -69,7 +71,7 @@ content: region: content field_description: type: text_default - label: above + label: visually_hidden settings: { } third_party_settings: { } weight: 7 @@ -82,5 +84,12 @@ content: third_party_settings: { } weight: 6 region: content + field_type: + type: list_default + label: visually_hidden + settings: { } + third_party_settings: { } + weight: 8 + region: content hidden: search_api_excerpt: true diff --git a/config/sync/field.field.paragraph.phase_deroulement.field_type.yml b/config/sync/field.field.paragraph.phase_deroulement.field_type.yml new file mode 100644 index 0000000..1674eb4 --- /dev/null +++ b/config/sync/field.field.paragraph.phase_deroulement.field_type.yml @@ -0,0 +1,21 @@ +uuid: f13c7254-6936-4913-bee9-e56b144f5818 +langcode: fr +status: true +dependencies: + config: + - field.storage.paragraph.field_type + - paragraphs.paragraphs_type.phase_deroulement + module: + - options +id: paragraph.phase_deroulement.field_type +field_name: field_type +entity_type: paragraph +bundle: phase_deroulement +label: Type +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: list_integer diff --git a/config/sync/field.storage.paragraph.field_type.yml b/config/sync/field.storage.paragraph.field_type.yml new file mode 100644 index 0000000..931fd0e --- /dev/null +++ b/config/sync/field.storage.paragraph.field_type.yml @@ -0,0 +1,30 @@ +uuid: 7ab85751-5a86-403a-adaa-b684637e17de +langcode: fr +status: true +dependencies: + module: + - options + - paragraphs +id: paragraph.field_type +field_name: field_type +entity_type: paragraph +type: list_integer +settings: + allowed_values: + - + value: 1 + label: 'étape du dialogue compétitif' + - + value: 2 + label: 'événements nationaux' + - + value: 3 + label: 'événements locaux' + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false