From 619434b08fb49ebb6efb6f38121568de5945c65b Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 11 Mar 2024 11:00:14 +0200 Subject: [PATCH] UHF-9530: Unify tpr tokens with rest of helfi_platform_config --- .../config/install/metatag.metatag_defaults.tpr_unit.yml | 2 +- modules/helfi_tpr_config/helfi_tpr_config.install | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/helfi_tpr_config/config/install/metatag.metatag_defaults.tpr_unit.yml b/modules/helfi_tpr_config/config/install/metatag.metatag_defaults.tpr_unit.yml index cfbc08b0d..e1ba9e20d 100644 --- a/modules/helfi_tpr_config/config/install/metatag.metatag_defaults.tpr_unit.yml +++ b/modules/helfi_tpr_config/config/install/metatag.metatag_defaults.tpr_unit.yml @@ -12,7 +12,7 @@ tags: article_published_time: '[tpr_unit:created:html_datetime]' og_description: '[tpr_unit:description:summary]' og_email: '[tpr_unit:email]' - og_image: '[tpr_unit:picture]' + og_image: '[tpr_unit:shareable-image]' og_latitude: '[tpr_unit:latitude]' og_longitude: '[tpr_unit:longitude]' og_phone_number: '[tpr_unit:phone]' diff --git a/modules/helfi_tpr_config/helfi_tpr_config.install b/modules/helfi_tpr_config/helfi_tpr_config.install index 4716268ad..d67cd1d0a 100644 --- a/modules/helfi_tpr_config/helfi_tpr_config.install +++ b/modules/helfi_tpr_config/helfi_tpr_config.install @@ -397,3 +397,12 @@ function helfi_tpr_config_update_9057(): void { \Drupal::service('helfi_platform_config.config_update_helper') ->update('helfi_tpr_config'); } + +/** + * UHF-9712: Unify metatags with platform config. + */ +function helfi_tpr_config_update_9058(): void { + // Re-import 'helfi_tpr_config' configuration. + \Drupal::service('helfi_platform_config.config_update_helper') + ->update('helfi_tpr_config'); +}