From eb9b250fcaf29d17a1c143406ba39e0f98ff0cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Fri, 17 Apr 2026 17:17:30 +0300 Subject: [PATCH 1/2] Updated configuration translations. --- .../cmi/language/fi/social_media.settings.yml | 2 +- conf/cmi/language/fi/views.view.media.yml | 47 +++++++++---------- .../sv/field.field.node.announcement.body.yml | 2 +- .../sv/field.field.node.survey.body.yml | 2 +- .../cmi/language/sv/social_media.settings.yml | 2 +- .../language/sv/views.view.helfi_redirect.yml | 6 +-- conf/cmi/language/sv/views.view.media.yml | 47 +++++++++---------- conf/cmi/language/sv/views.view.redirect.yml | 4 +- 8 files changed, 55 insertions(+), 57 deletions(-) diff --git a/conf/cmi/language/fi/social_media.settings.yml b/conf/cmi/language/fi/social_media.settings.yml index 14416e561..05882a56e 100644 --- a/conf/cmi/language/fi/social_media.settings.yml +++ b/conf/cmi/language/fi/social_media.settings.yml @@ -19,4 +19,4 @@ social_media: email: text: 'Lähetä sivu sähköpostitse' print: - text: Print + text: Tulosta diff --git a/conf/cmi/language/fi/views.view.media.yml b/conf/cmi/language/fi/views.view.media.yml index 58abde93c..5c3d68344 100644 --- a/conf/cmi/language/fi/views.view.media.yml +++ b/conf/cmi/language/fi/views.view.media.yml @@ -1,27 +1,9 @@ +label: Media +description: 'Etsi ja ylläpidä mediatiedostoja.' display: default: + display_title: Oletus display_options: - filters: - status: - expose: - description: '' - label: Tosi - group_info: - label: Julkaisutila - group_items: - 1: - title: Julkaistu - 2: - title: Julkaisematon - name: - expose: - label: 'Mediatiedoston nimi' - bundle: - expose: - label: Tyyppi - langcode: - expose: - label: Kieli title: Media fields: media_bulk_form: @@ -70,11 +52,28 @@ display: empty: area_text_custom: content: 'Mediatiedostoja ei ole saatavilla.' - display_title: Oletus + filters: + name: + expose: + label: 'Mediatiedoston nimi' + bundle: + expose: + label: Tyyppi + status: + expose: + label: Tosi + group_info: + label: Julkaisutila + group_items: + 1: + title: Julkaistu + 2: + title: Julkaisematon + langcode: + expose: + label: Kieli media_page_list: display_title: Media display_options: menu: title: Media -label: Media -description: 'Etsi ja ylläpidä mediatiedostoja.' diff --git a/conf/cmi/language/sv/field.field.node.announcement.body.yml b/conf/cmi/language/sv/field.field.node.announcement.body.yml index 7e34baf6d..ff10c66ec 100644 --- a/conf/cmi/language/sv/field.field.node.announcement.body.yml +++ b/conf/cmi/language/sv/field.field.node.announcement.body.yml @@ -1 +1 @@ -label: Body +label: Brödtext diff --git a/conf/cmi/language/sv/field.field.node.survey.body.yml b/conf/cmi/language/sv/field.field.node.survey.body.yml index 7e34baf6d..ff10c66ec 100644 --- a/conf/cmi/language/sv/field.field.node.survey.body.yml +++ b/conf/cmi/language/sv/field.field.node.survey.body.yml @@ -1 +1 @@ -label: Body +label: Brödtext diff --git a/conf/cmi/language/sv/social_media.settings.yml b/conf/cmi/language/sv/social_media.settings.yml index 5d351ce31..192cdb634 100644 --- a/conf/cmi/language/sv/social_media.settings.yml +++ b/conf/cmi/language/sv/social_media.settings.yml @@ -20,4 +20,4 @@ social_media: email: text: 'Skicka sidan via e‑post' print: - text: Print + text: Utskrift diff --git a/conf/cmi/language/sv/views.view.helfi_redirect.yml b/conf/cmi/language/sv/views.view.helfi_redirect.yml index e69b732ff..5b247e697 100644 --- a/conf/cmi/language/sv/views.view.helfi_redirect.yml +++ b/conf/cmi/language/sv/views.view.helfi_redirect.yml @@ -1,9 +1,9 @@ -label: Redirect +label: Omdirigera display: default: display_title: Förvald display_options: - title: Redirect + title: Omdirigera fields: redirect_bulk_form: action_title: 'Med valda' @@ -79,4 +79,4 @@ display: display_title: Sida display_options: menu: - title: Redirect + title: Omdirigera diff --git a/conf/cmi/language/sv/views.view.media.yml b/conf/cmi/language/sv/views.view.media.yml index ed5fe4a68..ae3af120c 100644 --- a/conf/cmi/language/sv/views.view.media.yml +++ b/conf/cmi/language/sv/views.view.media.yml @@ -1,27 +1,9 @@ +label: Media +description: 'Hitta och hantera media.' display: default: + display_title: Förvald display_options: - filters: - status: - expose: - description: '' - label: Sant - group_info: - label: 'Status för publicering' - group_items: - 1: - title: Publicerad - 2: - title: 'Ej publicerad' - name: - expose: - label: Medianamn - bundle: - expose: - label: Typ - langcode: - expose: - label: Språk title: Media fields: media_bulk_form: @@ -70,11 +52,28 @@ display: empty: area_text_custom: content: 'Ingen media tillgänglig.' - display_title: Förvald + filters: + name: + expose: + label: Medianamn + bundle: + expose: + label: Typ + status: + expose: + label: Sant + group_info: + label: 'Status för publicering' + group_items: + 1: + title: Publicerad + 2: + title: 'Ej publicerad' + langcode: + expose: + label: Språk media_page_list: display_title: Media display_options: menu: title: Media -label: Media -description: 'Hitta och hantera media.' diff --git a/conf/cmi/language/sv/views.view.redirect.yml b/conf/cmi/language/sv/views.view.redirect.yml index d17016968..0ef6cec58 100644 --- a/conf/cmi/language/sv/views.view.redirect.yml +++ b/conf/cmi/language/sv/views.view.redirect.yml @@ -1,4 +1,4 @@ -label: Redirect +label: Omdirigera display: default: display_title: Förvald @@ -47,7 +47,7 @@ display: language: expose: label: Originalspråk - title: Redirect + title: Omdirigera empty: area_text_custom: content: 'Det finns inga omdirigeringar ännu.' From d86b4164998151d6569afd5f44394fb331128cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Fri, 17 Apr 2026 17:18:46 +0300 Subject: [PATCH 2/2] Ordered external entity configuration mappings alphabetically. --- ...ternal_entity_type.helfi_announcements.yml | 56 +++++++------- ...es.external_entity_type.helfi_hearings.yml | 76 +++++++++---------- ...tities.external_entity_type.helfi_news.yml | 59 +++++++------- ...external_entity_type.helfi_news_groups.yml | 8 +- ..._entity_type.helfi_news_neighbourhoods.yml | 20 ++--- ...s.external_entity_type.helfi_news_tags.yml | 14 +++- ...ies.external_entity_type.helfi_surveys.yml | 56 +++++++++----- ...xternal_entity_type.linkedevents_event.yml | 76 +++++++++---------- 8 files changed, 196 insertions(+), 169 deletions(-) diff --git a/conf/cmi/external_entities.external_entity_type.helfi_announcements.yml b/conf/cmi/external_entities.external_entity_type.helfi_announcements.yml index 4880ee6e2..61bb0ee45 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_announcements.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_announcements.yml @@ -15,15 +15,15 @@ content_class: Drupal\external_entities\Entity\ExternalEntity read_only: true debug_level: 0 field_mappers: - id: + announcement_assistive_technology_close_button_title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.id - required_field: true + mapping: '$.attributes["field_announcement_title"]' + required_field: false main_property: true data_processors: - @@ -31,14 +31,14 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + announcement_link_text: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.id + mapping: '$.attributes["field_announcement_link"]["title"]' required_field: false main_property: true data_processors: @@ -47,15 +47,15 @@ field_mappers: config: { } description: '' debug_level: 0 - title: + announcement_link_url: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["title"]' - required_field: true + mapping: '$.attributes["field_announcement_link"]["uri"]' + required_field: false main_property: true data_processors: - @@ -63,14 +63,14 @@ field_mappers: config: { } description: '' debug_level: 0 - status: + announcement_type: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["status"]' + mapping: '$.attributes["field_announcement_type"]' required_field: false main_property: true data_processors: @@ -79,14 +79,14 @@ field_mappers: config: { } description: '' debug_level: 0 - published_at: + body: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["published_at"]' + mapping: '$.attributes["body"]["value"]' required_field: false main_property: true data_processors: @@ -95,15 +95,15 @@ field_mappers: config: { } description: '' debug_level: 0 - unpublish_on: + id: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["unpublish_on"]' - required_field: false + mapping: $.id + required_field: true main_property: true data_processors: - @@ -111,14 +111,14 @@ field_mappers: config: { } description: '' debug_level: 0 - body: + notification: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["body"]["value"]' + mapping: '$.attributes["notification"]' required_field: false main_property: true data_processors: @@ -127,14 +127,14 @@ field_mappers: config: { } description: '' debug_level: 0 - notification: + published_at: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["notification"]' + mapping: '$.attributes["published_at"]' required_field: false main_property: true data_processors: @@ -143,14 +143,14 @@ field_mappers: config: { } description: '' debug_level: 0 - announcement_type: + status: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["field_announcement_type"]' + mapping: '$.attributes["status"]' required_field: false main_property: true data_processors: @@ -159,15 +159,15 @@ field_mappers: config: { } description: '' debug_level: 0 - announcement_link_text: + title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["field_announcement_link"]["title"]' - required_field: false + mapping: '$.attributes["title"]' + required_field: true main_property: true data_processors: - @@ -175,14 +175,14 @@ field_mappers: config: { } description: '' debug_level: 0 - announcement_link_url: + unpublish_on: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["field_announcement_link"]["uri"]' + mapping: '$.attributes["unpublish_on"]' required_field: false main_property: true data_processors: @@ -191,14 +191,14 @@ field_mappers: config: { } description: '' debug_level: 0 - announcement_assistive_technology_close_button_title: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["field_announcement_title"]' + mapping: $.id required_field: false main_property: true data_processors: diff --git a/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml b/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml index df5fc3751..9abf584fd 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml @@ -15,15 +15,15 @@ content_class: Drupal\external_entities\Entity\ExternalEntity read_only: true debug_level: 0 field_mappers: - id: + abstract: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.id - required_field: true + mapping: $.abstract + required_field: false main_property: true data_processors: - @@ -31,14 +31,14 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + close_at: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.id + mapping: $.close_at required_field: false main_property: true data_processors: @@ -47,15 +47,15 @@ field_mappers: config: { } description: '' debug_level: 0 - title: + comments: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.title - required_field: true + mapping: $.n_comments + required_field: false main_property: true data_processors: - @@ -63,14 +63,14 @@ field_mappers: config: { } description: '' debug_level: 0 - main_image: + count: id: generic config: property_mappings: - uri: + value: id: jsonpath config: - mapping: $.main_image_url + mapping: $.count required_field: false main_property: true data_processors: @@ -78,17 +78,15 @@ field_mappers: id: default config: { } description: '' - title: - id: '' debug_level: 0 - close_at: + created_at: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.close_at + mapping: $.created_at required_field: false main_property: true data_processors: @@ -97,14 +95,14 @@ field_mappers: config: { } description: '' debug_level: 0 - created_at: + existing_translations: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.created_at + mapping: $.existing_translations required_field: false main_property: true data_processors: @@ -113,15 +111,15 @@ field_mappers: config: { } description: '' debug_level: 0 - open_at: + id: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.open_at - required_field: false + mapping: $.id + required_field: true main_property: true data_processors: - @@ -129,14 +127,14 @@ field_mappers: config: { } description: '' debug_level: 0 - slug: + main_image: id: generic config: property_mappings: - value: + uri: id: jsonpath config: - mapping: $.slug + mapping: $.main_image_url required_field: false main_property: true data_processors: @@ -144,15 +142,17 @@ field_mappers: id: default config: { } description: '' + title: + id: '' debug_level: 0 - comments: + main_image_title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.n_comments + mapping: $.main_image_caption required_field: false main_property: true data_processors: @@ -161,14 +161,14 @@ field_mappers: config: { } description: '' debug_level: 0 - organization: + open_at: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.organization + mapping: $.open_at required_field: false main_property: true data_processors: @@ -177,14 +177,14 @@ field_mappers: config: { } description: '' debug_level: 0 - abstract: + organization: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.abstract + mapping: $.organization required_field: false main_property: true data_processors: @@ -193,14 +193,14 @@ field_mappers: config: { } description: '' debug_level: 0 - main_image_title: + slug: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.main_image_caption + mapping: $.slug required_field: false main_property: true data_processors: @@ -209,15 +209,15 @@ field_mappers: config: { } description: '' debug_level: 0 - url: + title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.url - required_field: false + mapping: $.title + required_field: true main_property: true data_processors: - @@ -225,14 +225,14 @@ field_mappers: config: { } description: '' debug_level: 0 - count: + url: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.count + mapping: $.url required_field: false main_property: true data_processors: @@ -241,14 +241,14 @@ field_mappers: config: { } description: '' debug_level: 0 - existing_translations: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.existing_translations + mapping: $.id required_field: false main_property: true data_processors: diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news.yml b/conf/cmi/external_entities.external_entity_type.helfi_news.yml index 311270c3a..9db2425fb 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news.yml @@ -15,15 +15,15 @@ content_class: Drupal\helfi_paragraphs_news_list\Entity\ExternalEntity\News read_only: true debug_level: 0 field_mappers: - id: + groups: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.uuid_langcode[0]' - required_field: true + mapping: '$._source.field_news_groups[*]' + required_field: false main_property: true data_processors: - @@ -31,14 +31,14 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + groups_uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.uuid[0]' + mapping: '$._source.news_groups_uuid[*]' required_field: false main_property: true data_processors: @@ -47,14 +47,17 @@ field_mappers: config: { } description: '' debug_level: 0 - title: + default_langcode: + id: null + config: { } + id: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.title[0]' + mapping: '$._source.uuid_langcode[0]' required_field: true main_property: true data_processors: @@ -63,14 +66,17 @@ field_mappers: config: { } description: '' debug_level: 0 - tags: + langcode: + id: null + config: { } + neighbourhoods: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.field_news_item_tags[*]' + mapping: '$._source.field_news_neighbourhoods[*]' required_field: false main_property: true data_processors: @@ -79,14 +85,14 @@ field_mappers: config: { } description: '' debug_level: 0 - tags_uuid: + neighbourhoods_uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.news_tags_uuid[*]' + mapping: '$._source.neighbourhoods_uuid[*]' required_field: false main_property: true data_processors: @@ -95,14 +101,14 @@ field_mappers: config: { } description: '' debug_level: 0 - groups: + node_url: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.field_news_groups[*]' + mapping: '$._source.url[0]' required_field: false main_property: true data_processors: @@ -111,14 +117,14 @@ field_mappers: config: { } description: '' debug_level: 0 - groups_uuid: + published_at: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.news_groups_uuid[*]' + mapping: '$._source.published_at[0]' required_field: false main_property: true data_processors: @@ -127,14 +133,14 @@ field_mappers: config: { } description: '' debug_level: 0 - neighbourhoods: + short_title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.field_news_neighbourhoods[*]' + mapping: '$._source.short_title[0]' required_field: false main_property: true data_processors: @@ -143,14 +149,14 @@ field_mappers: config: { } description: '' debug_level: 0 - neighbourhoods_uuid: + tags: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.neighbourhoods_uuid[*]' + mapping: '$._source.field_news_item_tags[*]' required_field: false main_property: true data_processors: @@ -159,14 +165,14 @@ field_mappers: config: { } description: '' debug_level: 0 - node_url: + tags_uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.url[0]' + mapping: '$._source.news_tags_uuid[*]' required_field: false main_property: true data_processors: @@ -175,15 +181,15 @@ field_mappers: config: { } description: '' debug_level: 0 - published_at: + title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.published_at[0]' - required_field: false + mapping: '$._source.title[0]' + required_field: true main_property: true data_processors: - @@ -191,14 +197,14 @@ field_mappers: config: { } description: '' debug_level: 0 - short_title: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.short_title[0]' + mapping: '$._source.uuid[0]' required_field: false main_property: true data_processors: @@ -207,7 +213,6 @@ field_mappers: config: { } description: '' debug_level: 0 -field_save_order: null field_mapping_notes: '' data_aggregator: id: single diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml b/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml index 3b8292e6c..49aaa56e9 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml @@ -31,14 +31,14 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + tid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.uuid[0]' + mapping: '$._source.tid[0]' required_field: false main_property: true data_processors: @@ -63,14 +63,14 @@ field_mappers: config: { } description: '' debug_level: 0 - tid: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.tid[0]' + mapping: '$._source.uuid[0]' required_field: false main_property: true data_processors: diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml b/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml index c7ce539fb..e56cb2618 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml @@ -31,14 +31,14 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + location: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.uuid[0]' + mapping: $._source.field_location required_field: false main_property: true data_processors: @@ -47,15 +47,15 @@ field_mappers: config: { } description: '' debug_level: 0 - title: + tid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.name[0]' - required_field: true + mapping: '$._source.tid[0]' + required_field: false main_property: true data_processors: - @@ -63,15 +63,15 @@ field_mappers: config: { } description: '' debug_level: 0 - tid: + title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.tid[0]' - required_field: false + mapping: '$._source.name[0]' + required_field: true main_property: true data_processors: - @@ -79,14 +79,14 @@ field_mappers: config: { } description: '' debug_level: 0 - location: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $._source.field_location + mapping: '$._source.uuid[0]' required_field: false main_property: true data_processors: diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml b/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml index 158d9dfca..44f8b1d8b 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml @@ -15,6 +15,9 @@ content_class: Drupal\helfi_paragraphs_news_list\Entity\ExternalEntity\Term read_only: true debug_level: 0 field_mappers: + default_langcode: + id: null + config: { } id: id: generic config: @@ -31,14 +34,17 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + langcode: + id: null + config: { } + tid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.uuid[0]' + mapping: '$._source.tid[0]' required_field: false main_property: true data_processors: @@ -63,14 +69,14 @@ field_mappers: config: { } description: '' debug_level: 0 - tid: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$._source.tid[0]' + mapping: '$._source.uuid[0]' required_field: false main_property: true data_processors: diff --git a/conf/cmi/external_entities.external_entity_type.helfi_surveys.yml b/conf/cmi/external_entities.external_entity_type.helfi_surveys.yml index 5ab23035d..b1a684f64 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_surveys.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_surveys.yml @@ -15,15 +15,15 @@ content_class: Drupal\external_entities\Entity\ExternalEntity read_only: true debug_level: 0 field_mappers: - id: + body: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.id - required_field: true + mapping: '$.attributes["body"]["value"]' + required_field: false main_property: true data_processors: - @@ -31,7 +31,10 @@ field_mappers: config: { } description: '' debug_level: 0 - uuid: + default_langcode: + id: null + config: { } + id: id: generic config: property_mappings: @@ -39,7 +42,7 @@ field_mappers: id: jsonpath config: mapping: $.id - required_field: false + required_field: true main_property: true data_processors: - @@ -47,15 +50,29 @@ field_mappers: config: { } description: '' debug_level: 0 - title: + langcode: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["title"]' - required_field: true + mapping: '$.attributes["langcode"]' + required_field: false + main_property: true + data_processors: + - id: default + config: { } + description: '' + published_at: + id: generic + config: + property_mappings: + value: + id: jsonpath + config: + mapping: '$.attributes["published_at"]' + required_field: false main_property: true data_processors: - @@ -79,14 +96,14 @@ field_mappers: config: { } description: '' debug_level: 0 - published_at: + survey_link_text: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["published_at"]' + mapping: '$.attributes["field_survey_link"]["title"]' required_field: false main_property: true data_processors: @@ -95,14 +112,14 @@ field_mappers: config: { } description: '' debug_level: 0 - unpublish_on: + survey_link_url: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["unpublish_on"]' + mapping: '$.attributes["field_survey_link"]["uri"]' required_field: false main_property: true data_processors: @@ -111,15 +128,15 @@ field_mappers: config: { } description: '' debug_level: 0 - body: + title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["body"]["value"]' - required_field: false + mapping: '$.attributes["title"]' + required_field: true main_property: true data_processors: - @@ -127,14 +144,14 @@ field_mappers: config: { } description: '' debug_level: 0 - survey_link_text: + unpublish_on: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["field_survey_link"]["title"]' + mapping: '$.attributes["unpublish_on"]' required_field: false main_property: true data_processors: @@ -143,14 +160,14 @@ field_mappers: config: { } description: '' debug_level: 0 - survey_link_url: + uuid: id: generic config: property_mappings: value: id: jsonpath config: - mapping: '$.attributes["field_survey_link"]["uri"]' + mapping: $.id required_field: false main_property: true data_processors: @@ -159,7 +176,6 @@ field_mappers: config: { } description: '' debug_level: 0 -field_save_order: null field_mapping_notes: '' data_aggregator: id: single diff --git a/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml b/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml index 55e46af41..d6e688853 100644 --- a/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml +++ b/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml @@ -15,15 +15,27 @@ content_class: Drupal\external_entities\Entity\ExternalEntity read_only: true debug_level: 0 field_mappers: - id: + content_translation_source: + id: generic + config: + property_mappings: + value: + id: constant + config: + mapping: en + required_field: false + main_property: true + description: '' + debug_level: 0 + end_time: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.id - required_field: true + mapping: $.end_time + required_field: false main_property: true data_processors: - @@ -33,14 +45,14 @@ field_mappers: default: null description: '' debug_level: 0 - uuid: + external_link: id: generic config: property_mappings: - value: + uri: id: jsonpath config: - mapping: $.id + mapping: $.external_link required_field: false main_property: true data_processors: @@ -50,17 +62,12 @@ field_mappers: datatype: '' default: null description: '' - debug_level: 0 - title: - id: generic - config: - property_mappings: - value: + title: id: jsonpath config: - mapping: $.title - required_field: true - main_property: true + mapping: $.name + required_field: false + main_property: false data_processors: - id: default @@ -69,16 +76,22 @@ field_mappers: default: null description: '' debug_level: 0 - content_translation_source: + id: id: generic config: property_mappings: value: - id: constant + id: jsonpath config: - mapping: en - required_field: false + mapping: $.id + required_field: true main_property: true + data_processors: + - + id: default + config: + datatype: '' + default: null description: '' debug_level: 0 main_image: @@ -130,15 +143,15 @@ field_mappers: default: null description: '' debug_level: 0 - end_time: + title: id: generic config: property_mappings: value: id: jsonpath config: - mapping: $.end_time - required_field: false + mapping: $.title + required_field: true main_property: true data_processors: - @@ -148,14 +161,14 @@ field_mappers: default: null description: '' debug_level: 0 - external_link: + uuid: id: generic config: property_mappings: - uri: + value: id: jsonpath config: - mapping: $.external_link + mapping: $.id required_field: false main_property: true data_processors: @@ -165,19 +178,6 @@ field_mappers: datatype: '' default: null description: '' - title: - id: jsonpath - config: - mapping: $.name - required_field: false - main_property: false - data_processors: - - - id: default - config: - datatype: '' - default: null - description: '' debug_level: 0 field_save_order: null field_mapping_notes: ''