id: gcweb_node_landing_page_translation
migration_group: gcweb_translation
migration_tags:
  - Core
label: 'Embedded data feed of node landing page content'
source:
  plugin: embedded_data
  data_rows:
    -
      name: homepage
      title: 'Canada.ca'
      language: fr
      body: |
        <p>Le site officiel du gouvernement du Canada.</p>
      alias: /homepage
      queue: front_page
      metatags:
        -
          title: '[node:title]'
          description: '[node:summary]'
          keywords: 'Canada.ca, Open Government, Open Government Canada, Canada Open Government, Canada Open'
      layout:
        sections:
        - layout_id: 'wxt_homepage'
          layout_settings:
            layout:
              wrapper: div
              classes: {}
              add_layout_class: 1
              attributes: ''
            regions:
              top:
                wrapper: div
                classes: {}
                add_region_classes: 1
                attributes: ''
              top_left:
                wrapper: div
                classes:
                  col-md-6: col-md-8
                add_region_classes: 1
                attributes: class|mrgn-tp-md
              top_right:
                wrapper: div
                classes:
                  col-md-6: col-md-4
                add_region_classes: 1
                attributes: class|mrgn-tp-xl
              middle:
                wrapper: div
                classes:
                  col-sm-12: col-sm-12
                add_region_classes: 1
                attributes: ''
              bottom_left:
                wrapper: div
                classes:
                  col-sm-6: col-sm-6
                add_region_classes: 1
                attributes: ''
              bottom_right:
                wrapper: div
                classes:
                  col-sm-6: col-sm-6
                add_region_classes: 1
                attributes: ''
              bottom:
                wrapper: div
                classes:
                  col-sm-12: col-sm-12
                add_region_classes: 1
                attributes: class|mrgn-tp-lg
          components:
            -
              region: top
              configuration:
                id: 'block_content:homepage_block_1'
                label: Canada
                provider: 'block_content'
                label_display: 0
                view_mode: default
                context_mapping: {}
              additional: {  }
              weight: 1
            -
              region: top
              configuration:
                id: 'block_content:homepage_block_2'
                label: 'En demande'
                provider: 'block_content'
                label_display: 0
                view_mode: default
                context_mapping: {}
              additional: {  }
              weight: 2
            -
              region: top
              configuration:
                id: 'block_content:homepage_block_3'
                label: 'Par public'
                provider: 'block_content'
                label_display: 0
                view_mode: default
                context_mapping: {}
              additional: {  }
              weight: 3
            -
              region: top
              configuration:
                id: 'block_content:homepage_block_4'
                label: 'Votre gouvernement'
                provider: 'block_content'
                label_display: 0
                view_mode: default
                context_mapping: {}
              additional: {  }
              weight: 4
            -
              region: bottom
              configuration:
                id: 'views_block:blocks-block_2'
                label: En Vedette
                label_display: visible
                view_mode: full
                weight: 0
              additional: {  }
              weight: 0
    -
      name: topic
      title: '[Titre du thème]'
      language: fr
      body: |
        <p>1 ou 2 phrases d’introduction qui définissent les sujets et les tâches principales qui peuvent être consultés sur cette page.</p>
      alias: /topic
      queue: topic_page
      metatags:
        -
          title: '[node:title]'
          description: '[node:summary]'
          keywords: 'Canada.ca, Open Government, Open Government Canada, Canada Open Government, Canada Open'
      layout:
        sections:
        - layout_id: 'bs_2col_bricked'
          layout_settings:
            layout:
              wrapper: div
              classes:
                row: row
              add_layout_class: 1
              attributes: ''
            regions:
              top:
                wrapper: div
                classes:
                  col-sm-12: col-sm-12
                add_region_classes: 1
                attributes: ''
              top_left:
                wrapper: div
                classes:
                  col-md-6: col-md-8
                add_region_classes: 1
                attributes: class|mrgn-tp-md
              top_right:
                wrapper: div
                classes:
                  col-md-6: col-md-4
                add_region_classes: 1
                attributes: class|mrgn-tp-xl
              middle:
                wrapper: div
                classes:
                  col-sm-12: col-sm-12
                add_region_classes: 1
                attributes: ''
              bottom_left:
                wrapper: div
                classes:
                  col-sm-6: col-sm-6
                add_region_classes: 1
                attributes: ''
              bottom_right:
                wrapper: div
                classes:
                  col-sm-6: col-sm-6
                add_region_classes: 1
                attributes: ''
              bottom:
                wrapper: div
                classes:
                  col-sm-12: col-sm-12
                add_region_classes: 1
                attributes: class|mrgn-tp-lg
          components:
            -
              region: top_left
              configuration:
                id: 'page_title_block'
                label: 'Page title'
                provider: core
                label_display: '0'
                context_mapping: {}
              additional: {  }
              weight: 0
            -
              region: top_right
              configuration:
                id: 'entity_block:653x194'
                label: 'Media'
                provider: entity_block
                label_display: 0
                view_mode: default
                context_mapping: {}
              additional: {  }
              weight: 1
            -
              region: top_left
              configuration:
                id: local_tasks_block
                label: Tabs
                provider: core
                label_display: 0
                primary: 1
                secondary: 1
                context_mapping: {}
              additional: {  }
              weight: 1
            -
              region: top_left
              configuration:
                id: 'field_block:node:landing_page:body'
                label: Body
                provider: layout_builder
                label_display: 0
                formatter:
                  label: hidden
                  type: text_default
                  settings: {  }
                  third_party_settings: {  }
                  weight: 0
                context_mapping:
                  entity: layout_builder.entity
                  view_mode: view_mode
              additional: {  }
              weight: 1
            -
              region: bottom
              configuration:
                id: 'views_block:blocks-block_1'
                label: Features
                label_display: visible
                view_mode: full
              additional: {  }
              weight: 1
  ids:
    name:
      type: string
process:
  title:
    plugin: skip_on_empty
    method: row
    source: title
  nid:
    plugin: migration_lookup
    migration: gcweb_node_landing_page
    source: name
  uid:
    plugin: default_value
    default_value: 1
  type:
    plugin: default_value
    default_value: landing_page
  sticky:
    plugin: default_value
    default_value: 0
  body/value:
    plugin: wxt_media_tags
    source: body
  body/format:
    plugin: default_value
    default_value: rich_text
  field_queue: queue
  langcode:
    plugin: default_value
    default_value: "fr"
  content_translation_source:
    plugin: default_value
    default_value: "en"
  path/pathauto:
    plugin: default_value
    default_value: 0
  path/alias: alias
  status:
    plugin: default_value
    default_value: 1
  moderation_state:
    plugin: default_value
    default_value: "published"
  field_meta_tags:
    -
      plugin: skip_on_empty
      method: process
      source: metatags
    -
      plugin: callback
      callable: serialize
  'field_queue/target_id':
    plugin: default_value
    default_value: front_page
  layout_builder__layout:
    plugin: wxt_layout_plugin_id
    source: layout
destination:
  plugin: 'entity:node'
  translations: true
migration_dependencies:
  required:
    - wxt_media_slideshow
    - gcweb_node_landing_page
    - gcweb_block_translation
    - gcweb_block_spotlight_translation
dependencies:
  enforced:
    module:
      - wxt_ext_layout
      - wxt_ext_migration
