From 81310df79fb5d238f87338ef76b8787eda09a04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 19 Nov 2018 21:20:30 -0500 Subject: [PATCH] Add a boolean field for busting out of the flow --- ...ty_form_display.paragraph.view.default.yml | 26 ++++++++++++++++++- ...ty_view_display.paragraph.view.default.yml | 11 ++++++++ ...paragraph.view.field_style_escape_flow.yml | 23 ++++++++++++++++ ...rage.paragraph.field_style_escape_flow.yml | 18 +++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 config/sync/field.field.paragraph.view.field_style_escape_flow.yml create mode 100644 config/sync/field.storage.paragraph.field_style_escape_flow.yml diff --git a/config/sync/core.entity_form_display.paragraph.view.default.yml b/config/sync/core.entity_form_display.paragraph.view.default.yml index 74b709b..bad9aa7 100644 --- a/config/sync/core.entity_form_display.paragraph.view.default.yml +++ b/config/sync/core.entity_form_display.paragraph.view.default.yml @@ -3,17 +3,41 @@ langcode: en status: true dependencies: config: + - field.field.paragraph.view.field_style_escape_flow - field.field.paragraph.view.field_view_reference - paragraphs.paragraphs_type.view module: + - field_group - viewsreference +third_party_settings: + field_group: + group_style: + children: + - field_style_escape_flow + parent_name: '' + weight: 1 + format_type: details + format_settings: + id: '' + classes: '' + open: true + required_fields: true + label: Style + region: content id: paragraph.view.default targetEntityType: paragraph bundle: view mode: default content: + field_style_escape_flow: + weight: 2 + settings: + display_label: false + third_party_settings: { } + type: boolean_checkbox + region: content field_view_reference: - weight: 1 + weight: 0 settings: match_operator: CONTAINS size: '60' diff --git a/config/sync/core.entity_view_display.paragraph.view.default.yml b/config/sync/core.entity_view_display.paragraph.view.default.yml index aa7a48e..7ccb6b4 100644 --- a/config/sync/core.entity_view_display.paragraph.view.default.yml +++ b/config/sync/core.entity_view_display.paragraph.view.default.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.field.paragraph.view.field_style_escape_flow - field.field.paragraph.view.field_view_reference - paragraphs.paragraphs_type.view module: @@ -12,6 +13,16 @@ targetEntityType: paragraph bundle: view mode: default content: + field_style_escape_flow: + weight: 2 + label: above + settings: + format: default + format_custom_false: '' + format_custom_true: '' + third_party_settings: { } + type: boolean + region: content field_view_reference: weight: 1 label: hidden diff --git a/config/sync/field.field.paragraph.view.field_style_escape_flow.yml b/config/sync/field.field.paragraph.view.field_style_escape_flow.yml new file mode 100644 index 0000000..e7c0145 --- /dev/null +++ b/config/sync/field.field.paragraph.view.field_style_escape_flow.yml @@ -0,0 +1,23 @@ +uuid: 3bc88415-1587-43d8-9a11-d70504be46e0 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_style_escape_flow + - paragraphs.paragraphs_type.view +id: paragraph.view.field_style_escape_flow +field_name: field_style_escape_flow +entity_type: paragraph +bundle: view +label: 'Expand beyond content to sides' +description: 'Bust out of content flow to be able to expand left and right.' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'Bust out' + off_label: 'Stay in lane' +field_type: boolean diff --git a/config/sync/field.storage.paragraph.field_style_escape_flow.yml b/config/sync/field.storage.paragraph.field_style_escape_flow.yml new file mode 100644 index 0000000..fea2a58 --- /dev/null +++ b/config/sync/field.storage.paragraph.field_style_escape_flow.yml @@ -0,0 +1,18 @@ +uuid: 6394f4d6-6bf1-41f6-b98e-b31a42a67e41 +langcode: en +status: true +dependencies: + module: + - paragraphs +id: paragraph.field_style_escape_flow +field_name: field_style_escape_flow +entity_type: paragraph +type: boolean +settings: { } +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false