-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SD-197] Enable reusable paragraph type (#519)
Updates 1. add configMergeDeep function to TideEntityUpdateHelper 2. add icon to reusable paragraph 3. update to display sites and departments to reusable paragraph 4. add reusable paragraph to landing_page , publication and publication page content type Update 1. update dependencies 2. restructures update hooks. updates 1. move basic_text paragraph type to tide_core 2. update paragraphs_libraries to only have accordion and basic_text options 3. update permissions.
- Loading branch information
1 parent
39b0070
commit 7aa5c30
Showing
31 changed files
with
2,767 additions
and
13 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
.../install/field.field.paragraphs_library_item.paragraphs_library_item.field_department.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraphs_library_item.field_department | ||
- taxonomy.vocabulary.department | ||
module: | ||
- paragraphs_library | ||
id: paragraphs_library_item.paragraphs_library_item.field_department | ||
field_name: field_department | ||
entity_type: paragraphs_library_item | ||
bundle: paragraphs_library_item | ||
label: Department | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
department: department | ||
sort: | ||
field: name | ||
direction: asc | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
29 changes: 29 additions & 0 deletions
29
config/install/field.field.paragraphs_library_item.paragraphs_library_item.field_site.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraphs_library_item.field_site | ||
- taxonomy.vocabulary.sites | ||
module: | ||
- paragraphs_library | ||
id: paragraphs_library_item.paragraphs_library_item.field_site | ||
field_name: field_site | ||
entity_type: paragraphs_library_item | ||
bundle: paragraphs_library_item | ||
label: Site | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
sites: sites | ||
sort: | ||
field: name | ||
direction: asc | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
19 changes: 19 additions & 0 deletions
19
config/install/field.storage.paragraphs_library_item.field_department.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- paragraphs_library | ||
- taxonomy | ||
id: paragraphs_library_item.field_department | ||
field_name: field_department | ||
entity_type: paragraphs_library_item | ||
type: entity_reference | ||
settings: | ||
target_type: taxonomy_term | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
19 changes: 19 additions & 0 deletions
19
config/install/field.storage.paragraphs_library_item.field_site.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- paragraphs_library | ||
- taxonomy | ||
id: paragraphs_library_item.field_site | ||
field_name: field_site | ||
entity_type: paragraphs_library_item | ||
type: entity_reference | ||
settings: | ||
target_type: taxonomy_term | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...onal/core.entity_form_display.paragraphs_library_item.paragraphs_library_item.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraphs_library_item.paragraphs_library_item.field_department | ||
- field.field.paragraphs_library_item.paragraphs_library_item.field_site | ||
module: | ||
- paragraphs | ||
- paragraphs_library | ||
id: paragraphs_library_item.paragraphs_library_item.default | ||
targetEntityType: paragraphs_library_item | ||
bundle: paragraphs_library_item | ||
mode: default | ||
content: | ||
field_department: | ||
type: entity_reference_autocomplete | ||
weight: 2 | ||
region: content | ||
settings: | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_site: | ||
type: entity_reference_autocomplete | ||
weight: 3 | ||
region: content | ||
settings: | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
label: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
paragraphs: | ||
type: paragraphs | ||
weight: 1 | ||
region: content | ||
settings: | ||
title: Paragraph | ||
title_plural: Paragraphs | ||
edit_mode: open | ||
closed_mode: summary | ||
autocollapse: none | ||
closed_mode_threshold: 0 | ||
add_mode: dropdown | ||
form_display_mode: default | ||
default_paragraph_type: '' | ||
default_paragraph_count: 1 | ||
features: | ||
collapse_edit_all: collapse_edit_all | ||
duplicate: duplicate | ||
third_party_settings: { } | ||
status: | ||
type: boolean_checkbox | ||
weight: 4 | ||
region: content | ||
settings: | ||
display_label: true | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
uid: true |
17 changes: 17 additions & 0 deletions
17
config/optional/paragraphs.paragraphs_type.from_library.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
uuid: 65901f51-c5e6-44eb-b4ad-56191dce90cc | ||
langcode: en | ||
status: true | ||
dependencies: | ||
content: | ||
- 'file:file:b6a014c0-da0b-43ae-b2f9-19c6cf5a9902' | ||
enforced: | ||
module: | ||
- paragraphs_library | ||
_core: | ||
default_config_hash: RGSkW7xbQQkzNrGunBWMSKS6lacu7KsgZjVWGVUF0xY | ||
id: from_library | ||
label: 'Reusable content item' | ||
icon_uuid: b6a014c0-da0b-43ae-b2f9-19c6cf5a9902 | ||
icon_default: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iNzciIHZpZXdCb3g9IjAgMCA2OCA3NyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE0MzdfNjc5KSI+CjxyZWN0IHdpZHRoPSI2OCIgaGVpZ2h0PSI3NyIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMjEiIHk9IjQxIiB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