Add quotation with image paragraph type

Just a start so far, with a quotation text field with a generous character limit—
but not the unlimited amount a long text would be.
This commit is contained in:
benjamin melançon 2018-11-18 13:00:32 -05:00
parent cce7fcc6c5
commit 48f4c63c73
5 changed files with 113 additions and 0 deletions

View file

@ -0,0 +1,30 @@
uuid: cd7571d8-7699-4885-b399-a757220a17b3
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.quotation_with_image.field_quotation
- paragraphs.paragraphs_type.quotation_with_image
module:
- allowed_formats
- text
id: paragraph.quotation_with_image.default
targetEntityType: paragraph
bundle: quotation_with_image
mode: default
content:
field_quotation:
weight: 0
settings:
rows: 3
placeholder: ''
third_party_settings:
allowed_formats:
hide_help: '0'
hide_guidelines: '0'
type: text_textarea
region: content
hidden:
created: true
status: true
uid: true

View file

@ -0,0 +1,22 @@
uuid: 54e1ef87-9c4b-4617-a965-ff48b2011277
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.quotation_with_image.field_quotation
- paragraphs.paragraphs_type.quotation_with_image
module:
- text
id: paragraph.quotation_with_image.default
targetEntityType: paragraph
bundle: quotation_with_image
mode: default
content:
field_quotation:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
hidden: { }

View file

@ -0,0 +1,30 @@
uuid: 0ad42b66-9314-49a7-a090-09bb85c2ca8b
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_quotation
- paragraphs.paragraphs_type.quotation_with_image
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
minimalhtml: minimalhtml
basic_html: '0'
restricted_html: '0'
minimalhtmltitle: '0'
full_html: '0'
plain_text: '0'
id: paragraph.quotation_with_image.field_quotation
field_name: field_quotation
entity_type: paragraph
bundle: quotation_with_image
label: Quotation
description: 'Don''t use a blockquote or quotation marks unless what you are quoting contains a quotation, itself.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text

View file

@ -0,0 +1,20 @@
uuid: 4b2944bf-a6da-4924-b85e-23352257c964
langcode: en
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.field_quotation
field_name: field_quotation
entity_type: paragraph
type: text
settings:
max_length: 1020
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,11 @@
uuid: d613928a-85d1-421f-920a-4907e21c40d5
langcode: en
status: true
dependencies:
content:
- 'file:file:28542b04-bbcd-4a47-a3fb-f18d2f3dc5a2'
id: quotation_with_image
label: 'Quotation with image'
icon_uuid: 28542b04-bbcd-4a47-a3fb-f18d2f3dc5a2
description: 'An emphasized quotation with an image that together span across the full width of the content area.'
behavior_plugins: { }