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-10159 Convert fields to translatable fields #768

Merged
merged 1 commit into from
May 29, 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 @@ -12,7 +12,7 @@ bundle: announcement
label: 'Announcement title'
description: 'This title is only available to users of assistive technology. '
required: true
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
13 changes: 2 additions & 11 deletions modules/helfi_node_announcement/helfi_node_announcement.install
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,9 @@ function helfi_node_announcement_update_9001() : void {
}

/**
* Set node as unpublished on default.
* UHF-10159 Convert the announcement title field to a translatable field.
*/
function helfi_node_announcement_update_9002() : void {
// Re-import configuration.
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_node_announcement');
}

/**
* Add new field announcement_title for screenreaders.
*/
function helfi_node_announcement_update_9003() : void {
function helfi_node_announcement_update_9004() : void {
// Re-import configuration.
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_node_announcement');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bundle: tpr_unit
label: 'Phone label'
description: 'The label shown above the phone number when displayed in other contact info accordion.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
39 changes: 2 additions & 37 deletions modules/helfi_tpr_config/helfi_tpr_config.install
Original file line number Diff line number Diff line change
Expand Up @@ -381,44 +381,9 @@ function helfi_tpr_config_update_9052() : void {
}

/**
* UHF-9088: Updated configuration translations.
* UHF-10159 Convert the phone label field to a translatable field.
*/
function helfi_tpr_config_update_9061(): void {
// Re-import 'helfi_tpr_config' configuration.
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

/**
* UHF-9562: Updated email field formatter.
*/
function helfi_tpr_config_update_9062(): void {
// Re-import 'helfi_tpr_config' configuration.
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

/**
* UHF-9496: Move phone number option.
*/
function helfi_tpr_config_update_9064(): void {
// Re-import 'helfi_tpr_config' configuration.
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

/**
* UHF-9704 Fix article_modified_time metatag.
*/
function helfi_tpr_config_update_9065(): void {
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

/**
* Fix email translations.
*/
function helfi_tpr_config_update_9066(): void {
function helfi_tpr_config_update_9067(): void {
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}