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.
This commit is contained in:
benjamin melançon 2018-10-24 04:27:02 -04:00
parent 8455e91a9a
commit 68f9527066
4 changed files with 72 additions and 0 deletions

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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