Skip to content

Commit

Permalink
UHF-9755: Added and enabled paatokset_config module.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed Mar 19, 2024
1 parent 88ef5b2 commit 4978ad2
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/cmi/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ module:
paatokset_ahjo_api: 0
paatokset_ahjo_openid: 0
paatokset_ahjo_proxy: 0
paatokset_config: 0
paatokset_council_info: 0
paatokset_datapumppu: 0
paatokset_helsinki_kanava: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config_rewrite:
replace: ['tags.title']
tags:
title: '[current-page:title] | [site:name] | [site:page-title-suffix]'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config_rewrite:
replace: ['tags.title']
tags:
title: '[node:title] | [site:name] | [site:page-title-suffix]'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config_rewrite:
replace: ['tags.title']
tags:
title: '[term:name] | [site:name] | [site:page-title-suffix]'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: 'Paatokset Config'
type: module
core_version_requirement: ^10
dependencies:
- helfi_platform_config:helfi_platform_config
24 changes: 24 additions & 0 deletions public/modules/custom/paatokset_config/paatokset_config.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

/**
* @file
* Contains alterations for config.
*/

declare(strict_types=1);

use Drupal\config_rewrite\ConfigRewriterInterface;

/**
* Implements hook_rewrite_config_update().
*/
function paatokset_config_rewrite_config_update(string $module, ConfigRewriterInterface $configRewriter): void {
$modules = [
'helfi_base_content',
];

if (in_array($module, $modules)) {
// Rewrite module configuration.
$configRewriter->rewriteModuleConfig('paatokset_config');
}
}

0 comments on commit 4978ad2

Please sign in to comment.