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
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.paragraph.text.field_style_classes
|
||||
- field.field.paragraph.text.field_text
|
||||
- paragraphs.paragraphs_type.text
|
||||
module:
|
||||
|
@ -14,6 +15,12 @@ targetEntityType: paragraph
|
|||
bundle: text
|
||||
mode: default
|
||||
content:
|
||||
field_style_classes:
|
||||
weight: 1
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: options_select
|
||||
region: content
|
||||
field_text:
|
||||
weight: 0
|
||||
settings:
|
||||
|
|
|
@ -3,6 +3,7 @@ langcode: en
|
|||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.paragraph.text.field_style_classes
|
||||
- field.field.paragraph.text.field_text
|
||||
- paragraphs.paragraphs_type.text
|
||||
module:
|
||||
|
@ -21,4 +22,5 @@ content:
|
|||
third_party_settings: { }
|
||||
type: text_default
|
||||
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
|
||||
label: Large
|
||||
-
|
||||
value: is-light
|
||||
label: Light
|
||||
allowed_values_function: ''
|
||||
module: options
|
||||
locked: false
|
||||
|
|
Loading…
Reference in a new issue