From 52ab80a5ad65ddb8006b1c6b6410d8c5a6c53fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 12 Nov 2018 23:45:14 -0500 Subject: [PATCH] Add a views reference paragraph type --- ...ty_form_display.paragraph.view.default.yml | 27 ++++++++ ...ty_view_display.paragraph.view.default.yml | 28 +++++++++ ...ld.paragraph.view.field_view_reference.yml | 61 +++++++++++++++++++ ...storage.paragraph.field_view_reference.yml | 21 +++++++ .../sync/paragraphs.paragraphs_type.view.yml | 9 +++ 5 files changed, 146 insertions(+) create mode 100644 config/sync/core.entity_form_display.paragraph.view.default.yml create mode 100644 config/sync/core.entity_view_display.paragraph.view.default.yml create mode 100644 config/sync/field.field.paragraph.view.field_view_reference.yml create mode 100644 config/sync/field.storage.paragraph.field_view_reference.yml create mode 100644 config/sync/paragraphs.paragraphs_type.view.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 new file mode 100644 index 0000000..74b709b --- /dev/null +++ b/config/sync/core.entity_form_display.paragraph.view.default.yml @@ -0,0 +1,27 @@ +uuid: 58414ad1-0d71-444b-900c-890745e2d3d9 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.view.field_view_reference + - paragraphs.paragraphs_type.view + module: + - viewsreference +id: paragraph.view.default +targetEntityType: paragraph +bundle: view +mode: default +content: + field_view_reference: + weight: 1 + settings: + match_operator: CONTAINS + size: '60' + placeholder: '' + third_party_settings: { } + type: viewsreference_autocomplete + region: content +hidden: + created: true + status: true + uid: true diff --git a/config/sync/core.entity_view_display.paragraph.view.default.yml b/config/sync/core.entity_view_display.paragraph.view.default.yml new file mode 100644 index 0000000..0f2dd5f --- /dev/null +++ b/config/sync/core.entity_view_display.paragraph.view.default.yml @@ -0,0 +1,28 @@ +uuid: 01e9439c-9802-4b6d-9c59-12ea050fb525 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.view.field_view_reference + - paragraphs.paragraphs_type.view + module: + - viewsreference +id: paragraph.view.default +targetEntityType: paragraph +bundle: view +mode: default +content: + field_view_reference: + weight: 1 + label: above + settings: + plugin_types: + block: block + page: page + default: 0 + feed: 0 + embed: 0 + third_party_settings: { } + type: viewsreference_formatter + region: content +hidden: { } diff --git a/config/sync/field.field.paragraph.view.field_view_reference.yml b/config/sync/field.field.paragraph.view.field_view_reference.yml new file mode 100644 index 0000000..299ba5f --- /dev/null +++ b/config/sync/field.field.paragraph.view.field_view_reference.yml @@ -0,0 +1,61 @@ +uuid: 2047c61c-bd55-4463-8e4b-57f464190f1c +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_view_reference + - paragraphs.paragraphs_type.view + module: + - viewsreference +id: paragraph.view.field_view_reference +field_name: field_view_reference +entity_type: paragraph +bundle: view +label: View +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:view' + handler_settings: + target_bundles: null + auto_create: 0 + plugin_types: + block: block + page: page + embed: embed + default: 0 + feed: 0 + preselect_views: + action: 0 + article: 0 + block_content: 0 + blog: 0 + campaign: 0 + case_study: 0 + comment: 0 + comments_recent: 0 + content: 0 + content_recent: 0 + event: 0 + files: 0 + frontpage: 0 + group: 0 + group_content: 0 + group_members: 0 + group_nodes: 0 + people: 0 + redirect: 0 + redirect_404: 0 + related_content: 0 + resource: 0 + search: 0 + taxonomy_term: 0 + user_admin_people: 0 + watchdog: 0 + webform_submissions: 0 + who_s_new: 0 + who_s_online: 0 +field_type: viewsreference diff --git a/config/sync/field.storage.paragraph.field_view_reference.yml b/config/sync/field.storage.paragraph.field_view_reference.yml new file mode 100644 index 0000000..223bce2 --- /dev/null +++ b/config/sync/field.storage.paragraph.field_view_reference.yml @@ -0,0 +1,21 @@ +uuid: bbefa52b-e218-4684-a896-06b96e50355c +langcode: en +status: true +dependencies: + module: + - paragraphs + - views + - viewsreference +id: paragraph.field_view_reference +field_name: field_view_reference +entity_type: paragraph +type: viewsreference +settings: + target_type: view +module: viewsreference +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/paragraphs.paragraphs_type.view.yml b/config/sync/paragraphs.paragraphs_type.view.yml new file mode 100644 index 0000000..0fd56b1 --- /dev/null +++ b/config/sync/paragraphs.paragraphs_type.view.yml @@ -0,0 +1,9 @@ +uuid: fa75b78a-c5b6-4474-959d-9adb4b38b911 +langcode: en +status: true +dependencies: { } +id: view +label: View +icon_uuid: null +description: '' +behavior_plugins: { }