From 48f4c63c73903d1c176a2aba05d180ac302d77db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 18 Nov 2018 13:00:32 -0500 Subject: [PATCH] Add quotation with image paragraph type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- ...paragraph.quotation_with_image.default.yml | 30 +++++++++++++++++++ ...paragraph.quotation_with_image.default.yml | 22 ++++++++++++++ ...h.quotation_with_image.field_quotation.yml | 30 +++++++++++++++++++ ...ield.storage.paragraph.field_quotation.yml | 20 +++++++++++++ ...s.paragraphs_type.quotation_with_image.yml | 11 +++++++ 5 files changed, 113 insertions(+) create mode 100644 config/sync/core.entity_form_display.paragraph.quotation_with_image.default.yml create mode 100644 config/sync/core.entity_view_display.paragraph.quotation_with_image.default.yml create mode 100644 config/sync/field.field.paragraph.quotation_with_image.field_quotation.yml create mode 100644 config/sync/field.storage.paragraph.field_quotation.yml create mode 100644 config/sync/paragraphs.paragraphs_type.quotation_with_image.yml diff --git a/config/sync/core.entity_form_display.paragraph.quotation_with_image.default.yml b/config/sync/core.entity_form_display.paragraph.quotation_with_image.default.yml new file mode 100644 index 0000000..c0800fc --- /dev/null +++ b/config/sync/core.entity_form_display.paragraph.quotation_with_image.default.yml @@ -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 diff --git a/config/sync/core.entity_view_display.paragraph.quotation_with_image.default.yml b/config/sync/core.entity_view_display.paragraph.quotation_with_image.default.yml new file mode 100644 index 0000000..584fe8b --- /dev/null +++ b/config/sync/core.entity_view_display.paragraph.quotation_with_image.default.yml @@ -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: { } diff --git a/config/sync/field.field.paragraph.quotation_with_image.field_quotation.yml b/config/sync/field.field.paragraph.quotation_with_image.field_quotation.yml new file mode 100644 index 0000000..9a61408 --- /dev/null +++ b/config/sync/field.field.paragraph.quotation_with_image.field_quotation.yml @@ -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 diff --git a/config/sync/field.storage.paragraph.field_quotation.yml b/config/sync/field.storage.paragraph.field_quotation.yml new file mode 100644 index 0000000..0546593 --- /dev/null +++ b/config/sync/field.storage.paragraph.field_quotation.yml @@ -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 diff --git a/config/sync/paragraphs.paragraphs_type.quotation_with_image.yml b/config/sync/paragraphs.paragraphs_type.quotation_with_image.yml new file mode 100644 index 0000000..feb2df1 --- /dev/null +++ b/config/sync/paragraphs.paragraphs_type.quotation_with_image.yml @@ -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: { }