generated from druxt/module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore(#47): add custom layout and test content * feat(#47): added support for custom layouts module * chore: update test environments * chore(#47): update dependencies * chore: update test
- Loading branch information
Showing
21 changed files
with
366 additions
and
106 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
"druxt-layout-paragraphs": minor | ||
--- | ||
|
||
feat(#47): added support for Custom Layouts module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16.20.1 |
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
17 changes: 17 additions & 0 deletions
17
example/drupal/config/core.entity_view_display.layout_content.custom_layout.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,17 @@ | ||
uuid: 5f1147ed-e3e8-40c2-8b56-b59c8316473c | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- layout_content.type.custom_layout | ||
id: layout_content.custom_layout.default | ||
targetEntityType: layout_content | ||
bundle: custom_layout | ||
mode: default | ||
content: | ||
layout_regions: | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: { } |
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
10 changes: 10 additions & 0 deletions
10
example/drupal/config/layout_content.type.custom_layout.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,10 @@ | ||
uuid: abe4a023-8b46-4e58-9870-c9ead19ce6cf | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: custom_layout | ||
label: 'Custom layout' | ||
revision: 1 | ||
layout: | ||
- | ||
content: content |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
uuid: fcb7b2e5-821f-4bf2-9eff-22e289a4280c | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
dependencies: | ||
module: | ||
- layout_paragraphs | ||
id: text | ||
label: Text | ||
icon_uuid: null | ||
icon_default: null | ||
description: '' | ||
behavior_plugins: { } | ||
behavior_plugins: | ||
layout_paragraphs: | ||
enabled: false | ||
available_layouts: { } |
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
58 changes: 58 additions & 0 deletions
58
example/drupal/content/paragraph.3c881aaf-c532-4a77-8bd0-ab4fcea8f909.json
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,58 @@ | ||
{ | ||
"uuid": [ | ||
{ | ||
"value": "3c881aaf-c532-4a77-8bd0-ab4fcea8f909" | ||
} | ||
], | ||
"langcode": [ | ||
{ | ||
"value": "en" | ||
} | ||
], | ||
"type": [ | ||
{ | ||
"target_id": "text", | ||
"target_type": "paragraphs_type", | ||
"target_uuid": "fcb7b2e5-821f-4bf2-9eff-22e289a4280c" | ||
} | ||
], | ||
"status": [ | ||
{ | ||
"value": true | ||
} | ||
], | ||
"created": [ | ||
{ | ||
"value": "2023-07-17T03:35:50+00:00", | ||
"format": "Y-m-d\\TH:i:sP" | ||
} | ||
], | ||
"behavior_settings": [ | ||
{ | ||
"value": { | ||
"layout_paragraphs": { | ||
"region": "content", | ||
"parent_uuid": "87d5e680-a388-4049-bd81-53501fc793eb", | ||
"layout": "", | ||
"config": [] | ||
} | ||
} | ||
} | ||
], | ||
"default_langcode": [ | ||
{ | ||
"value": true | ||
} | ||
], | ||
"revision_translation_affected": [ | ||
{ | ||
"value": true | ||
} | ||
], | ||
"field_text": [ | ||
{ | ||
"value": "<p>Curabitur tincidunt erat non sollicitudin accumsan. In urna orci, tempor eu condimentum nec, commodo ut sem. In posuere lacus sit amet massa semper, et tincidunt mi euismod. Suspendisse egestas condimentum libero eget congue. Nunc mattis ac ligula vitae egestas. Nam sed vestibulum felis, et consectetur orci. In congue ornare felis vel convallis. Nam a molestie elit.<\/p>\r\n", | ||
"format": "basic_html" | ||
} | ||
] | ||
} |
62 changes: 62 additions & 0 deletions
62
example/drupal/content/paragraph.87d5e680-a388-4049-bd81-53501fc793eb.json
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,62 @@ | ||
{ | ||
"uuid": [ | ||
{ | ||
"value": "87d5e680-a388-4049-bd81-53501fc793eb" | ||
} | ||
], | ||
"langcode": [ | ||
{ | ||
"value": "en" | ||
} | ||
], | ||
"type": [ | ||
{ | ||
"target_id": "section", | ||
"target_type": "paragraphs_type", | ||
"target_uuid": "da40476e-6c6d-4333-986d-d91742780c6e" | ||
} | ||
], | ||
"status": [ | ||
{ | ||
"value": true | ||
} | ||
], | ||
"created": [ | ||
{ | ||
"value": "2023-07-17T03:35:27+00:00", | ||
"format": "Y-m-d\\TH:i:sP" | ||
} | ||
], | ||
"behavior_settings": [ | ||
{ | ||
"value": { | ||
"layout_paragraphs": { | ||
"region": "", | ||
"parent_uuid": "", | ||
"layout": "layout_content__custom_layout:custom_layout", | ||
"config": { | ||
"label": "", | ||
"layout_serialized": "O:42:\"Drupal\\layout_content\\Entity\\LayoutContent\":28:{s:15:\"\u0000*\u0000entityTypeId\";s:14:\"layout_content\";s:15:\"\u0000*\u0000enforceIsNew\";b:1;s:12:\"\u0000*\u0000typedData\";N;s:16:\"\u0000*\u0000cacheContexts\";a:0:{}s:12:\"\u0000*\u0000cacheTags\";a:0:{}s:14:\"\u0000*\u0000cacheMaxAge\";i:-1;s:14:\"\u0000*\u0000_serviceIds\";a:0:{}s:18:\"\u0000*\u0000_entityStorages\";a:0:{}s:9:\"\u0000*\u0000values\";a:13:{s:8:\"langcode\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:5:\"value\";s:2:\"en\";}}}s:11:\"revision_id\";a:1:{s:9:\"x-default\";a:0:{}}s:2:\"id\";a:1:{s:9:\"x-default\";a:0:{}}s:4:\"uuid\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:5:\"value\";s:36:\"a82948c8-91f7-4c6f-9739-c9eaf28daa84\";}}}s:4:\"type\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:9:\"target_id\";s:13:\"custom_layout\";}}}s:16:\"revision_created\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:5:\"value\";i:1689564928;}}}s:13:\"revision_user\";a:1:{s:9:\"x-default\";a:0:{}}s:12:\"revision_log\";a:1:{s:9:\"x-default\";a:0:{}}s:6:\"status\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:5:\"value\";b:1;}}}s:7:\"changed\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:5:\"value\";i:1689564928;}}}s:16:\"default_langcode\";a:1:{s:9:\"x-default\";a:1:{i:0;a:1:{s:5:\"value\";b:1;}}}s:16:\"revision_default\";a:1:{s:9:\"x-default\";a:0:{}}s:29:\"revision_translation_affected\";a:1:{s:9:\"x-default\";a:0:{}}}s:9:\"\u0000*\u0000fields\";a:0:{}s:19:\"\u0000*\u0000fieldDefinitions\";N;s:12:\"\u0000*\u0000languages\";N;s:14:\"\u0000*\u0000langcodeKey\";s:8:\"langcode\";s:21:\"\u0000*\u0000defaultLangcodeKey\";s:16:\"default_langcode\";s:17:\"\u0000*\u0000activeLangcode\";s:9:\"x-default\";s:18:\"\u0000*\u0000defaultLangcode\";s:2:\"en\";s:15:\"\u0000*\u0000translations\";a:1:{s:9:\"x-default\";a:1:{s:6:\"status\";i:2;}}s:24:\"\u0000*\u0000translationInitialize\";b:0;s:14:\"\u0000*\u0000newRevision\";b:1;s:20:\"\u0000*\u0000isDefaultRevision\";b:1;s:13:\"\u0000*\u0000entityKeys\";a:2:{s:6:\"bundle\";s:13:\"custom_layout\";s:8:\"revision\";N;}s:25:\"\u0000*\u0000translatableEntityKeys\";a:1:{s:8:\"langcode\";a:1:{s:9:\"x-default\";s:2:\"en\";}}s:12:\"\u0000*\u0000validated\";b:0;s:21:\"\u0000*\u0000validationRequired\";b:0;s:19:\"\u0000*\u0000loadedRevisionId\";N;s:33:\"\u0000*\u0000revisionTranslationAffectedKey\";s:29:\"revision_translation_affected\";s:37:\"\u0000*\u0000enforceRevisionTranslationAffected\";a:0:{}s:12:\"\u0000*\u0000isSyncing\";b:0;}", | ||
"layout_revision_id": null, | ||
"layout_uuid": null | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"default_langcode": [ | ||
{ | ||
"value": true | ||
} | ||
], | ||
"revision_translation_affected": [ | ||
{ | ||
"value": true | ||
} | ||
], | ||
"field_title": [ | ||
{ | ||
"value": "Custom layout" | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.