Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-9755 Configuration replacement #393

Merged
merged 3 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ content:
third_party_settings: { }
simple_sitemap:
weight: 10
region: content
settings: { }
third_party_settings: { }
region: content
status:
type: boolean_checkbox
weight: 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ content:
weight: 4
region: content
settings:
linkit_profile: helfi
linkit_auto_link_text: false
linkit_profile: helfi
third_party_settings: { }
field_banner_link_design:
type: design_field_widget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.paragraph.list_of_links_item.field_list_of_links_link
- paragraphs.paragraphs_type.list_of_links_item
module:
- hdbt_admin_tools
- media_library
enforced:
module:
Expand Down Expand Up @@ -37,8 +38,8 @@ content:
weight: 1
region: content
settings:
linkit_profile: helfi
linkit_auto_link_text: false
linkit_profile: helfi
third_party_settings: { }
hidden:
created: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ langcode: en
status: true
dependencies:
config:
- responsive_image.styles.gallery_thumbnail
- responsive_image.styles.image__3_2
module:
- external_entities
- imagecache_external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ content:
weight: 0
region: content
list:
weight: 100
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden:
search_api_excerpt: true
2 changes: 2 additions & 0 deletions conf/cmi/core.entity_view_display.paragraph.image.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ dependencies:
- field.field.paragraph.image.field_image_caption
- field.field.paragraph.image.field_original_aspect_ratio
- paragraphs.paragraphs_type.image
module:
- helfi_platform_config
id: paragraph.image.default
targetEntityType: paragraph
bundle: image
Expand Down
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
4 changes: 2 additions & 2 deletions conf/cmi/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ segment_display_limit: null
truncator_mode: false
truncator_length: 100
truncator_dots: true
remove_repeated_segments_text_only: 0
home_segment_validation_skip: 0
remove_repeated_segments_text_only: false
home_segment_validation_skip: false
2 changes: 1 addition & 1 deletion conf/cmi/editoria11y.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ no_load: ''
embedded_content_warning: ''
download_links: ''
ignore_link_strings: ''
link_ignore_selector: 'svg.ext, svg.mailto, .link-purpose-text'
hidden_handlers: ''
ignore_containers: ''
allow_overflow: ''
link_ignore_selector: 'svg.ext, svg.mailto, .link-purpose-text'
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ id: helfi_announcements
label: 'Helfi: Announcements'
label_plural: 'Helfi: Announcements'
description: ''
read_only: true
generate_aliases: null
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ id: helfi_hearings
label: 'Helfi: Hearing'
label_plural: 'Helfi: Hearing'
description: 'Helfi hearings from hearing api.'
read_only: true
generate_aliases: false
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ id: helfi_news
label: 'Helfi: News'
label_plural: 'Helfi: News'
description: ''
read_only: true
generate_aliases: null
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ id: helfi_news_groups
label: 'Helfi: News groups'
label_plural: 'Helfi: News groups'
description: 'Retrieves news groups taxonomy terms from Helfi'
read_only: true
generate_aliases: null
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ id: helfi_news_neighbourhoods
label: 'Helfi: News neighbourhoods'
label_plural: 'Helfi: News neighbourhoods'
description: 'Retrieves news neighbourhoods taxonomy terms from Helfi'
read_only: true
generate_aliases: null
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ id: helfi_news_tags
label: 'Helfi: News tags'
label_plural: 'Helfi: News tags'
description: 'Retrieves news tags taxonomy terms from Helfi'
read_only: true
generate_aliases: null
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
Expand Down
24 changes: 12 additions & 12 deletions conf/cmi/field.field.node.landing_page.field_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,30 @@ settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
columns: columns
list_of_links: list_of_links
content_cards: content_cards
content_liftup: content_liftup
banner: banner
liftup_with_image: liftup_with_image
popular_services: popular_services
from_library: from_library
chart: chart
remote_video: remote_video
map: map
news_list: news_list
event_list: event_list
columns: columns
phasing: phasing
popular_services: popular_services
map: map
remote_video: remote_video
chart: chart
target_group_links: target_group_links
event_list: event_list
news_list: news_list
hearings: hearings
unit_search: unit_search
content_liftup: content_liftup
service_list: service_list
service_list_search: service_list_search
pdf_listing: pdf_listing
meetings_calendar: meetings_calendar
unit_search: unit_search
image: image
accordion: accordion
meetings_calendar: meetings_calendar
pdf_listing: pdf_listing
custom_content_links: custom_content_links
image: image
text: text
negate: 0
target_bundles_drag_drop:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ id: paragraph.columns.field_columns_left_column
field_name: field_columns_left_column
entity_type: paragraph
bundle: columns
label: 'Vasen palsta'
label: 'Left column'
description: ''
required: true
translatable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ id: paragraph.columns.field_columns_right_column
field_name: field_columns_right_column
entity_type: paragraph
bundle: columns
label: 'Oikea palsta'
label: 'Right column'
description: ''
required: true
translatable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ id: paragraph.list_of_links.field_list_of_links_links
field_name: field_list_of_links_links
entity_type: paragraph
bundle: list_of_links
label: Linkit
description: 'Linkkilistan linkit.'
label: Links
description: 'The links that you want the paragraph to display.'
required: true
translatable: false
default_value: { }
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/metatag.metatag_defaults.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ id: global
label: Global
tags:
canonical_url: '[current-page:url]'
og_image: '[site:default-og-image]'
og_image: '[site:shareable-image]'
og_site_name: '[site:page-title-suffix]'
title: '[current-page:title] | [site:name] | [site:page-title-suffix]'
twitter_cards_image: '[site:default-og-image]'
twitter_cards_image: '[site:shareable-image]'
twitter_cards_page_url: '[current-page:url]'
twitter_cards_title: '[current-page:title] | [site:page-title-suffix]'
twitter_cards_type: summary_large_image
2 changes: 1 addition & 1 deletion conf/cmi/metatag.metatag_defaults.tpr_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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]'
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/views.view.media_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ display:
image_link: ''
image_style: media_library
image_loading:
attribute: lazy
attribute: eager
name:
id: name
table: media_field_data
Expand Down Expand Up @@ -1374,7 +1374,7 @@ display:
custom_date_format: ''
timezone: ''
tooltip:
date_format: ''
date_format: long
custom_date_format: ''
time_diff:
enabled: false
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');
}
}
Loading