From e85ce56825cc50475c4c98907424415c4c0935e2 Mon Sep 17 00:00:00 2001 From: mmyllynen <4696381+dire@users.noreply.github.com> Date: Wed, 15 Nov 2023 10:19:44 +0200 Subject: [PATCH] UHF-9159: Updated tpr unit display configs with the subgroup field. --- ...ore.entity_form_display.tpr_unit.tpr_unit.default.yml | 1 + ...ore.entity_view_display.tpr_unit.tpr_unit.default.yml | 1 + ...ore.entity_view_display.tpr_unit.tpr_unit.minimal.yml | 1 + ...core.entity_view_display.tpr_unit.tpr_unit.teaser.yml | 1 + ..._view_display.tpr_unit.tpr_unit.teaser_with_image.yml | 1 + ...entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml | 1 + modules/helfi_tpr_config/helfi_tpr_config.install | 9 +++++++++ 7 files changed, 15 insertions(+) diff --git a/modules/helfi_tpr_config/config/install/core.entity_form_display.tpr_unit.tpr_unit.default.yml b/modules/helfi_tpr_config/config/install/core.entity_form_display.tpr_unit.tpr_unit.default.yml index b8a30b031..84c353d4b 100644 --- a/modules/helfi_tpr_config/config/install/core.entity_form_display.tpr_unit.tpr_unit.default.yml +++ b/modules/helfi_tpr_config/config/install/core.entity_form_display.tpr_unit.tpr_unit.default.yml @@ -406,3 +406,4 @@ hidden: hide_description: true ontologyword_ids: true show_www: true + subgroup: true diff --git a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.default.yml b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.default.yml index 15a236542..e3f355ee8 100644 --- a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.default.yml +++ b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.default.yml @@ -287,3 +287,4 @@ hidden: langcode: true show_www: true streetview_entrance_url: true + subgroup: true diff --git a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml index 621d8f7d7..bb98746ba 100644 --- a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml +++ b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.minimal.yml @@ -66,6 +66,7 @@ hidden: services: true show_www: true streetview_entrance_url: true + subgroup: true toc_enabled: true unit_picture_caption: true www: true diff --git a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml index 6a0831d04..42138863a 100644 --- a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml +++ b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser.yml @@ -84,6 +84,7 @@ hidden: services: true show_www: true streetview_entrance_url: true + subgroup: true toc_enabled: true unit_picture_caption: true www: true diff --git a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml index c4a76a9a3..9562ced4f 100644 --- a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml +++ b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.teaser_with_image.yml @@ -85,5 +85,6 @@ hidden: services: true show_www: true streetview_entrance_url: true + subgroup: true toc_enabled: true www: true diff --git a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml index 0be1cbceb..7f0b44025 100644 --- a/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml +++ b/modules/helfi_tpr_config/config/install/core.entity_view_display.tpr_unit.tpr_unit.wide_teaser.yml @@ -98,5 +98,6 @@ hidden: services: true show_www: true streetview_entrance_url: true + subgroup: true toc_enabled: true www: true diff --git a/modules/helfi_tpr_config/helfi_tpr_config.install b/modules/helfi_tpr_config/helfi_tpr_config.install index b495bf621..897af1b00 100644 --- a/modules/helfi_tpr_config/helfi_tpr_config.install +++ b/modules/helfi_tpr_config/helfi_tpr_config.install @@ -342,3 +342,12 @@ function helfi_tpr_config_update_9049(): void { 'update tpr_unit', ]); } + +/** + * UHF-9159: Subgroup field display configs. + */ +function helfi_tpr_config_update_9050(): void { + // Re-import 'helfi_tpr_config' configuration. + \Drupal::service('helfi_platform_config.config_update_helper') + ->update('helfi_tpr_config'); +}