From abf0ce6ba40ec6abe0937e4fd4805debfce9feed Mon Sep 17 00:00:00 2001 From: mmyllynen <4696381+dire@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:56:26 +0200 Subject: [PATCH] UHF-8936: Enabled text and map paragraphs for lower content of tpr units. --- modules/helfi_tpr_config/helfi_tpr_config.install | 7 +++++++ modules/helfi_tpr_config/helfi_tpr_config.module | 2 ++ 2 files changed, 9 insertions(+) diff --git a/modules/helfi_tpr_config/helfi_tpr_config.install b/modules/helfi_tpr_config/helfi_tpr_config.install index 897af1b00..c4ef37525 100644 --- a/modules/helfi_tpr_config/helfi_tpr_config.install +++ b/modules/helfi_tpr_config/helfi_tpr_config.install @@ -351,3 +351,10 @@ function helfi_tpr_config_update_9050(): void { \Drupal::service('helfi_platform_config.config_update_helper') ->update('helfi_tpr_config'); } + +/** + * UHF-8936 Update tpr_unit to include map and text paragraphs in lower content. + */ +function helfi_tpr_config_update_9051(): void { + helfi_platform_config_update_paragraph_target_types(); +} diff --git a/modules/helfi_tpr_config/helfi_tpr_config.module b/modules/helfi_tpr_config/helfi_tpr_config.module index 650a59847..783f3a7ed 100644 --- a/modules/helfi_tpr_config/helfi_tpr_config.module +++ b/modules/helfi_tpr_config/helfi_tpr_config.module @@ -66,6 +66,8 @@ function helfi_tpr_config_helfi_paragraph_types() : array { 'contact_card_listing', 'remote_video', 'event_list', + 'map', + 'text', ], ], ],