Add style classes as option to text paragraphs
Adding one is what triggers all the craziness, busting out like ... a hero.
This commit is contained in:
parent
12a78b1d04
commit
edd56f1801
4 changed files with 34 additions and 1 deletions
|
@ -3,6 +3,7 @@ langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
|
- field.field.paragraph.text.field_style_classes
|
||||||
- field.field.paragraph.text.field_text
|
- field.field.paragraph.text.field_text
|
||||||
- paragraphs.paragraphs_type.text
|
- paragraphs.paragraphs_type.text
|
||||||
module:
|
module:
|
||||||
|
@ -14,6 +15,12 @@ targetEntityType: paragraph
|
||||||
bundle: text
|
bundle: text
|
||||||
mode: default
|
mode: default
|
||||||
content:
|
content:
|
||||||
|
field_style_classes:
|
||||||
|
weight: 1
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
type: options_select
|
||||||
|
region: content
|
||||||
field_text:
|
field_text:
|
||||||
weight: 0
|
weight: 0
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -3,6 +3,7 @@ langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
|
- field.field.paragraph.text.field_style_classes
|
||||||
- field.field.paragraph.text.field_text
|
- field.field.paragraph.text.field_text
|
||||||
- paragraphs.paragraphs_type.text
|
- paragraphs.paragraphs_type.text
|
||||||
module:
|
module:
|
||||||
|
@ -21,4 +22,5 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: text_default
|
type: text_default
|
||||||
region: content
|
region: content
|
||||||
hidden: { }
|
hidden:
|
||||||
|
field_style_classes: true
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
uuid: d2cc85cf-82ea-45c3-9bef-636780e14906
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.paragraph.field_style_classes
|
||||||
|
- paragraphs.paragraphs_type.text
|
||||||
|
module:
|
||||||
|
- options
|
||||||
|
id: paragraph.text.field_style_classes
|
||||||
|
field_name: field_style_classes
|
||||||
|
entity_type: paragraph
|
||||||
|
bundle: text
|
||||||
|
label: 'Section style'
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: true
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: list_string
|
|
@ -17,6 +17,9 @@ settings:
|
||||||
-
|
-
|
||||||
value: is-large
|
value: is-large
|
||||||
label: Large
|
label: Large
|
||||||
|
-
|
||||||
|
value: is-light
|
||||||
|
label: Light
|
||||||
allowed_values_function: ''
|
allowed_values_function: ''
|
||||||
module: options
|
module: options
|
||||||
locked: false
|
locked: false
|
||||||
|
|
Loading…
Reference in a new issue