From 68f9527066fd023b8dbbe4bd0136371d7ad22557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 24 Oct 2018 04:27:02 -0400 Subject: [PATCH] Add color style field We'll try field_style_ as the prefix standard for fields used to format the look of content, rather than being content themselves. --- ...y_form_display.paragraph.title.default.yml | 7 ++++ ...y_view_display.paragraph.title.default.yml | 8 +++++ ...ield.paragraph.title.field_style_color.yml | 21 +++++++++++ ...ld.storage.paragraph.field_style_color.yml | 36 +++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 config/sync/field.field.paragraph.title.field_style_color.yml create mode 100644 config/sync/field.storage.paragraph.field_style_color.yml diff --git a/config/sync/core.entity_form_display.paragraph.title.default.yml b/config/sync/core.entity_form_display.paragraph.title.default.yml index 88101ea..82ea280 100644 --- a/config/sync/core.entity_form_display.paragraph.title.default.yml +++ b/config/sync/core.entity_form_display.paragraph.title.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.paragraph.title.field_image + - field.field.paragraph.title.field_style_color - field.field.paragraph.title.field_subtitle - field.field.paragraph.title.field_title - image.style.thumbnail @@ -24,6 +25,12 @@ content: third_party_settings: { } type: image_image region: content + field_style_color: + weight: 3 + settings: { } + third_party_settings: { } + type: options_select + region: content field_subtitle: weight: 1 settings: diff --git a/config/sync/core.entity_view_display.paragraph.title.default.yml b/config/sync/core.entity_view_display.paragraph.title.default.yml index ff2aacc..3708d26 100644 --- a/config/sync/core.entity_view_display.paragraph.title.default.yml +++ b/config/sync/core.entity_view_display.paragraph.title.default.yml @@ -4,12 +4,14 @@ status: true dependencies: config: - field.field.paragraph.title.field_image + - field.field.paragraph.title.field_style_color - field.field.paragraph.title.field_subtitle - field.field.paragraph.title.field_title - image.style.max_650x650 - paragraphs.paragraphs_type.title module: - image + - options - text id: paragraph.title.default targetEntityType: paragraph @@ -23,6 +25,12 @@ content: image_style: max_650x650 third_party_settings: { } type: image_url + field_style_color: + weight: 3 + label: hidden + settings: { } + third_party_settings: { } + type: list_key region: content field_subtitle: weight: 1 diff --git a/config/sync/field.field.paragraph.title.field_style_color.yml b/config/sync/field.field.paragraph.title.field_style_color.yml new file mode 100644 index 0000000..0e0b9ad --- /dev/null +++ b/config/sync/field.field.paragraph.title.field_style_color.yml @@ -0,0 +1,21 @@ +uuid: 54b33186-ce84-44bd-a692-d5040dfc8473 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_style_color + - paragraphs.paragraphs_type.title + module: + - options +id: paragraph.title.field_style_color +field_name: field_style_color +entity_type: paragraph +bundle: title +label: Color +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/config/sync/field.storage.paragraph.field_style_color.yml b/config/sync/field.storage.paragraph.field_style_color.yml new file mode 100644 index 0000000..7fd0bd6 --- /dev/null +++ b/config/sync/field.storage.paragraph.field_style_color.yml @@ -0,0 +1,36 @@ +uuid: 5570eeee-e38b-473c-8ac8-2a72f33a0132 +langcode: en +status: true +dependencies: + module: + - options + - paragraphs +id: paragraph.field_style_color +field_name: field_style_color +entity_type: paragraph +type: list_string +settings: + allowed_values: + - + value: berry + label: Berry + - + value: briteblue + label: 'Bright blue' + - + value: cinnamon + label: Cinnamon + - + value: dandelion + label: Dandelion + - + value: marine + label: Marine + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false