-
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.
Merge pull request #719 from yalesites-org/v150
Release v1.5.0
- Loading branch information
Showing
31 changed files
with
684 additions
and
102 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
patches/layout_builder/1330eff91b1234979cf697a66a48e34eb116b441-1.patch
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,33 @@ | ||
From f046b109bdaa308f3063980026c0b63227469012 Mon Sep 17 00:00:00 2001 | ||
From: David Blankenship <[email protected]> | ||
Date: Mon, 29 Jul 2024 11:15:16 -0400 | ||
Subject: [PATCH] apply saved | ||
|
||
--- | ||
.../layout_builder/src/Form/ConfigureBlockFormBase.php | 10 +++++++++- | ||
1 file changed, 9 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php b/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php | ||
index 8dd6333269..16b0a8cd70 100644 | ||
--- a/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php | ||
+++ b/core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php | ||
@@ -365,7 +365,15 @@ public function submitForm(array &$form, FormStateInterface $form_state) { | ||
$block_content = $form['settings']['block_form']['#block']; | ||
$block_content->setReusable(); | ||
$block_content->setInfo($block_info); | ||
- $block_content->save(); | ||
+ $saved = $block_content->save(); | ||
+ | ||
+ // If it didn't save, it's probably because we're using the same cloned | ||
+ // item somewhere else with different revisions. So, we'll create a new | ||
+ // block_content item to make sure it's fresh and won't interfere. | ||
+ if (!$saved) { | ||
+ $block_content = $block_content->createDuplicate(); | ||
+ $block_content->save(); | ||
+ } | ||
|
||
$block_label_display = $form_state->getValue('settings')['label_display']; | ||
$this->block = $this->blockManager->createInstance('block_content:' . $block_content->uuid(), [ | ||
-- | ||
2.45.2 | ||
|
This file was deleted.
Oops, something went wrong.
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
33 changes: 33 additions & 0 deletions
33
web/profiles/custom/yalesites_profile/config/sync/block_content.type.inline_message.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,33 @@ | ||
uuid: b692caf5-825e-4c39-b6d7-762778de4b6d | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- entity_redirect | ||
third_party_settings: | ||
entity_redirect: | ||
redirect: | ||
add: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
edit: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
delete: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
anonymous: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
id: inline_message | ||
label: 'In-Line Message' | ||
revision: 0 | ||
description: 'Add a non-dismissible message box in your content to draw attention to important information or warnings.' |
92 changes: 92 additions & 0 deletions
92
...tes_profile/config/sync/core.entity_form_display.block_content.inline_message.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,92 @@ | ||
uuid: d9afb06f-c30e-42f6-a92c-4a4978070a45 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- block_content.type.inline_message | ||
- field.field.block_content.inline_message.field_heading | ||
- field.field.block_content.inline_message.field_link | ||
- field.field.block_content.inline_message.field_style_color | ||
- field.field.block_content.inline_message.field_text | ||
module: | ||
- allowed_formats | ||
- hide_revision_field | ||
- linkit | ||
- maxlength | ||
- text | ||
id: block_content.inline_message.default | ||
targetEntityType: block_content | ||
bundle: inline_message | ||
mode: default | ||
content: | ||
field_heading: | ||
type: text_textfield | ||
weight: 2 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: | ||
allowed_formats: | ||
hide_help: '1' | ||
hide_guidelines: '1' | ||
maxlength: | ||
maxlength_js: 50 | ||
maxlength_js_label: 'Content recommended length set to @limit characters, remaining: <strong>@remaining</strong>' | ||
maxlength_js_enforce: false | ||
field_link: | ||
type: linkit | ||
weight: 6 | ||
region: content | ||
settings: | ||
placeholder_url: '' | ||
placeholder_title: '' | ||
linkit_profile: default | ||
linkit_auto_link_text: false | ||
third_party_settings: | ||
maxlength: | ||
maxlength_js: null | ||
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>' | ||
maxlength_js_enforce: false | ||
field_style_color: | ||
type: options_select | ||
weight: 3 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_text: | ||
type: text_textarea | ||
weight: 4 | ||
region: content | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
third_party_settings: | ||
allowed_formats: | ||
hide_help: '1' | ||
hide_guidelines: '1' | ||
maxlength: | ||
maxlength_js: 500 | ||
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>' | ||
maxlength_js_enforce: true | ||
info: | ||
type: string_textfield | ||
weight: -5 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
revision_log: | ||
type: hide_revision_field_log_widget | ||
weight: 80 | ||
region: content | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
show: true | ||
default: '' | ||
permission_based: false | ||
allow_user_settings: true | ||
third_party_settings: { } | ||
hidden: { } |
54 changes: 54 additions & 0 deletions
54
...tes_profile/config/sync/core.entity_view_display.block_content.inline_message.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,54 @@ | ||
uuid: 69ecb1b1-12f7-4a55-b10e-1cbd689243f2 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- block_content.type.inline_message | ||
- field.field.block_content.inline_message.field_heading | ||
- field.field.block_content.inline_message.field_link | ||
- field.field.block_content.inline_message.field_style_color | ||
- field.field.block_content.inline_message.field_text | ||
module: | ||
- link | ||
- options | ||
- text | ||
id: block_content.inline_message.default | ||
targetEntityType: block_content | ||
bundle: inline_message | ||
mode: default | ||
content: | ||
field_heading: | ||
type: text_default | ||
label: hidden | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
field_link: | ||
type: link_separate | ||
label: hidden | ||
settings: | ||
trim_length: null | ||
url_only: false | ||
url_plain: false | ||
rel: '0' | ||
target: '0' | ||
third_party_settings: { } | ||
weight: 4 | ||
region: content | ||
field_style_color: | ||
type: list_key | ||
label: hidden | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
field_text: | ||
type: text_default | ||
label: hidden | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 3 | ||
region: content | ||
hidden: | ||
search_api_excerpt: true |
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 |
---|---|---|
|
@@ -17,6 +17,8 @@ settings: | |
- heading | ||
- '|' | ||
- link | ||
- subscript | ||
- superscript | ||
- '|' | ||
- anchor | ||
- '|' | ||
|
24 changes: 24 additions & 0 deletions
24
.../yalesites_profile/config/sync/field.field.block_content.inline_message.field_heading.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,24 @@ | ||
uuid: e0182b01-e1be-4396-be2b-573e171a1c45 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- block_content.type.inline_message | ||
- field.storage.block_content.field_heading | ||
- filter.format.heading_html | ||
module: | ||
- text | ||
id: block_content.inline_message.field_heading | ||
field_name: field_heading | ||
entity_type: block_content | ||
bundle: inline_message | ||
label: Heading | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
allowed_formats: | ||
- heading_html | ||
field_type: text |
23 changes: 23 additions & 0 deletions
23
...tom/yalesites_profile/config/sync/field.field.block_content.inline_message.field_link.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,23 @@ | ||
uuid: 0512509f-d16a-4d0c-b210-583c4ef81115 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- block_content.type.inline_message | ||
- field.storage.block_content.field_link | ||
module: | ||
- link | ||
id: block_content.inline_message.field_link | ||
field_name: field_link | ||
entity_type: block_content | ||
bundle: inline_message | ||
label: Link | ||
description: 'For more information about linking content, view our resource <a href="https://yalesites.yale.edu/resource-library/linking-content-on-yalesites" target="_blank">Linking Content on YaleSites</a>.' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
title: 2 | ||
link_type: 17 | ||
field_type: link |
21 changes: 21 additions & 0 deletions
21
...esites_profile/config/sync/field.field.block_content.inline_message.field_style_color.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,21 @@ | ||
uuid: 1ca64dda-9397-4c21-800a-4f3732021700 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- block_content.type.inline_message | ||
- field.storage.block_content.field_style_color | ||
module: | ||
- options | ||
id: block_content.inline_message.field_style_color | ||
field_name: field_style_color | ||
entity_type: block_content | ||
bundle: inline_message | ||
label: Theme | ||
description: '' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: ys_themes_default_value_function | ||
settings: { } | ||
field_type: list_string |
Oops, something went wrong.