From c160f2303e8d95ffaee7cf30fc9af99eacfde2d9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 13 Feb 2020 00:10:22 +0000 Subject: [PATCH] Add basic block type --- .../sync/block_content.type.basic_block.yml | 8 + ...play.block_content.basic_block.default.yml | 33 ++ ...play.block_content.basic_block.default.yml | 22 + ...re.entity_view_mode.block_content.full.yml | 12 + config/sync/core.extension.yml | 1 + ...d.field.block_content.basic_block.body.yml | 23 + .../sync/field.storage.block_content.body.yml | 21 + config/sync/views.view.block_content.yml | 543 ++++++++++++++++++ 8 files changed, 663 insertions(+) create mode 100644 config/sync/block_content.type.basic_block.yml create mode 100644 config/sync/core.entity_form_display.block_content.basic_block.default.yml create mode 100644 config/sync/core.entity_view_display.block_content.basic_block.default.yml create mode 100644 config/sync/core.entity_view_mode.block_content.full.yml create mode 100644 config/sync/field.field.block_content.basic_block.body.yml create mode 100644 config/sync/field.storage.block_content.body.yml create mode 100644 config/sync/views.view.block_content.yml diff --git a/config/sync/block_content.type.basic_block.yml b/config/sync/block_content.type.basic_block.yml new file mode 100644 index 0000000..05bdd09 --- /dev/null +++ b/config/sync/block_content.type.basic_block.yml @@ -0,0 +1,8 @@ +uuid: 50d55f62-399c-4efe-8822-2d404a97cd07 +langcode: en +status: true +dependencies: { } +id: basic_block +label: 'Basic block' +revision: 1 +description: '' diff --git a/config/sync/core.entity_form_display.block_content.basic_block.default.yml b/config/sync/core.entity_form_display.block_content.basic_block.default.yml new file mode 100644 index 0000000..35a3be6 --- /dev/null +++ b/config/sync/core.entity_form_display.block_content.basic_block.default.yml @@ -0,0 +1,33 @@ +uuid: 4ce8ba50-9032-46b9-9e96-d33f8bc1e623 +langcode: en +status: true +dependencies: + config: + - block_content.type.basic_block + - field.field.block_content.basic_block.body + module: + - text +id: block_content.basic_block.default +targetEntityType: block_content +bundle: basic_block +mode: default +content: + body: + type: text_textarea_with_summary + weight: 26 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + show_summary: false + third_party_settings: { } + region: content + info: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: { } diff --git a/config/sync/core.entity_view_display.block_content.basic_block.default.yml b/config/sync/core.entity_view_display.block_content.basic_block.default.yml new file mode 100644 index 0000000..0d0abf5 --- /dev/null +++ b/config/sync/core.entity_view_display.block_content.basic_block.default.yml @@ -0,0 +1,22 @@ +uuid: 7d6aacbd-983b-45f2-9552-861f3c127907 +langcode: en +status: true +dependencies: + config: + - block_content.type.basic_block + - field.field.block_content.basic_block.body + module: + - text +id: block_content.basic_block.default +targetEntityType: block_content +bundle: basic_block +mode: default +content: + body: + label: hidden + type: text_default + weight: 0 + settings: { } + third_party_settings: { } + region: content +hidden: { } diff --git a/config/sync/core.entity_view_mode.block_content.full.yml b/config/sync/core.entity_view_mode.block_content.full.yml new file mode 100644 index 0000000..6e3c560 --- /dev/null +++ b/config/sync/core.entity_view_mode.block_content.full.yml @@ -0,0 +1,12 @@ +uuid: a431295d-0318-42bd-bd92-8cbf1f8f5b8d +langcode: en +status: false +dependencies: + module: + - block_content +_core: + default_config_hash: 4tedlMuvQjDOdvHdw86_e-2Rt78aR7TGFMfOK8Ejppg +id: block_content.full +label: Full +targetEntityType: block_content +cache: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index ca5d051..faecd55 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -2,6 +2,7 @@ module: admin_toolbar: 0 admin_toolbar_tools: 0 block: 0 + block_content: 0 breakpoint: 0 config: 0 config_filter: 0 diff --git a/config/sync/field.field.block_content.basic_block.body.yml b/config/sync/field.field.block_content.basic_block.body.yml new file mode 100644 index 0000000..e2b7311 --- /dev/null +++ b/config/sync/field.field.block_content.basic_block.body.yml @@ -0,0 +1,23 @@ +uuid: 0ff17468-381b-4ff4-8576-4cc66d85dcab +langcode: en +status: true +dependencies: + config: + - block_content.type.basic_block + - field.storage.block_content.body + module: + - text +id: block_content.basic_block.body +field_name: body +entity_type: block_content +bundle: basic_block +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: false + required_summary: false +field_type: text_with_summary diff --git a/config/sync/field.storage.block_content.body.yml b/config/sync/field.storage.block_content.body.yml new file mode 100644 index 0000000..346425a --- /dev/null +++ b/config/sync/field.storage.block_content.body.yml @@ -0,0 +1,21 @@ +uuid: d77a5a69-e2cd-435c-8ed1-729fa108e1dc +langcode: en +status: true +dependencies: + module: + - block_content + - text +_core: + default_config_hash: eS0snV_L3dx9shtWRTzm5eblwOJ7qKWC9IE-4GMTDFc +id: block_content.body +field_name: body +entity_type: block_content +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/config/sync/views.view.block_content.yml b/config/sync/views.view.block_content.yml new file mode 100644 index 0000000..e3e35ae --- /dev/null +++ b/config/sync/views.view.block_content.yml @@ -0,0 +1,543 @@ +uuid: 01c17384-40ef-4df3-ba3a-b82384647985 +langcode: en +status: true +dependencies: + module: + - block_content + - user +_core: + default_config_hash: 2J0rd5cWfFsdSX-kAb0f9EzvC0_vn4NxGlUpOQAXeOU +id: block_content +label: 'Custom block library' +module: views +description: 'Find and manage custom blocks.' +tag: default +base_table: block_content_field_data +base_field: id +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'administer blocks' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 50 + offset: 0 + id: 0 + total_pages: null + tags: + previous: '‹ Previous' + next: 'Next ›' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + info: info + type: type + changed: changed + operations: operations + info: + info: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + type: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: changed + empty_table: true + row: + type: fields + fields: + info: + id: info + table: block_content_field_data + field: info + relationship: none + group_type: group + admin_label: '' + label: 'Block description' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: null + entity_field: info + plugin_id: field + type: + id: type + table: block_content_field_data + field: type + relationship: none + group_type: group + admin_label: '' + label: 'Block type' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: block_content + entity_field: type + plugin_id: field + changed: + id: changed + table: block_content_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + label: Updated + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: block_content + entity_field: changed + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + plugin_id: field + operations: + id: operations + table: block_content + field: operations + relationship: none + group_type: group + admin_label: '' + label: Operations + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + destination: true + entity_type: block_content + plugin_id: entity_operations + filters: + info: + id: info + table: block_content_field_data + field: info + relationship: none + group_type: group + admin_label: '' + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: info_op + label: 'Block description' + description: '' + use_operator: false + operator: info_op + identifier: info + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + operator_limit_selection: false + operator_list: { } + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: block_content + entity_field: info + plugin_id: string + type: + id: type + table: block_content_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: 'Block type' + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + operator_limit_selection: false + operator_list: { } + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: block_content + entity_field: type + plugin_id: bundle + reusable: + id: reusable + table: block_content_field_data + field: reusable + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + operator_limit_selection: false + operator_list: { } + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: block_content + entity_field: reusable + plugin_id: boolean + sorts: { } + title: 'Custom block library' + header: { } + footer: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'There are no custom blocks available.' + plugin_id: text_custom + block_content_listing_empty: + admin_label: '' + empty: true + field: block_content_listing_empty + group_type: group + id: block_content_listing_empty + label: '' + relationship: none + table: block_content + plugin_id: block_content_listing_empty + entity_type: block_content + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + max-age: -1 + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: admin/structure/block/block-content + menu: + type: tab + title: 'Custom block library' + description: '' + parent: block.admin_display + weight: 0 + context: '0' + menu_name: admin + cache_metadata: + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + max-age: -1 + tags: { }