id: upgrade_d7_view_modes
class: Drupal\migrate\Plugin\Migration
migration_tags:
  - 'Drupal 7'
  - Configuration
  - entity_view_mode
  - tag1_configuration
label: 'View modes'
source:
  key: migrate
  plugin: d7_view_mode
process:
  mode:
    -
      plugin: static_map
      source: view_mode
      bypass: true
      map:
        default: full
  label:
    -
      plugin: static_map
      source: view_mode
      bypass: true
      map:
        search_index: 'Search index'
        search_result: 'Search result'
        rss: RSS
        print: Print
        teaser: Teaser
        full: Full
        default: Full
  targetEntityType:
    -
      plugin: get
      source: entity_type
    -
      plugin: static_map
      map:
        field_collection_item: paragraph
        paragraphs_item: paragraph
      bypass: true
destination:
  plugin: 'entity:entity_view_mode'
migration_dependencies:
  required:
    - upgrade_d7_field_collection_type
    - upgrade_d7_node_type
    - upgrade_d7_taxonomy_vocabulary
  optional: {  }
