Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										26
									
								
								web/core/modules/shortcut/migrations/d7_shortcut.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								web/core/modules/shortcut/migrations/d7_shortcut.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
id: d7_shortcut
 | 
			
		||||
label: Shortcut links
 | 
			
		||||
migration_tags:
 | 
			
		||||
  - Drupal 7
 | 
			
		||||
  - Content
 | 
			
		||||
source:
 | 
			
		||||
  plugin: d7_shortcut
 | 
			
		||||
  constants:
 | 
			
		||||
    uri_scheme: 'internal:/'
 | 
			
		||||
process:
 | 
			
		||||
  shortcut_set:
 | 
			
		||||
    plugin: migration_lookup
 | 
			
		||||
    migration: d7_shortcut_set
 | 
			
		||||
    source: menu_name
 | 
			
		||||
  title: link_title
 | 
			
		||||
  weight: weight
 | 
			
		||||
  link:
 | 
			
		||||
    plugin: concat
 | 
			
		||||
    source:
 | 
			
		||||
      - 'constants/uri_scheme'
 | 
			
		||||
      - link_path
 | 
			
		||||
destination:
 | 
			
		||||
  plugin: entity:shortcut
 | 
			
		||||
migration_dependencies:
 | 
			
		||||
  required:
 | 
			
		||||
    - d7_shortcut_set
 | 
			
		||||
							
								
								
									
										23
									
								
								web/core/modules/shortcut/migrations/d7_shortcut_set.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								web/core/modules/shortcut/migrations/d7_shortcut_set.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,23 @@
 | 
			
		||||
id: d7_shortcut_set
 | 
			
		||||
label: Shortcut sets
 | 
			
		||||
migration_tags:
 | 
			
		||||
  - Drupal 7
 | 
			
		||||
  - Configuration
 | 
			
		||||
source:
 | 
			
		||||
  plugin: d7_shortcut_set
 | 
			
		||||
process:
 | 
			
		||||
  id:
 | 
			
		||||
    -
 | 
			
		||||
      plugin: static_map
 | 
			
		||||
      bypass: true
 | 
			
		||||
      source: set_name
 | 
			
		||||
      map:
 | 
			
		||||
        shortcut-set-1: default
 | 
			
		||||
    -
 | 
			
		||||
      plugin: machine_name
 | 
			
		||||
      field: id
 | 
			
		||||
      # @see shortcut.schema.yml
 | 
			
		||||
      replace_pattern: /[^a-z0-9-]+/
 | 
			
		||||
  label: title
 | 
			
		||||
destination:
 | 
			
		||||
  plugin: entity:shortcut_set
 | 
			
		||||
@ -0,0 +1,27 @@
 | 
			
		||||
id: d7_shortcut_set_users
 | 
			
		||||
label: Shortcut set user mapping
 | 
			
		||||
# This configuration migration depends on the d7_user content migration.
 | 
			
		||||
migration_tags:
 | 
			
		||||
  - Drupal 7
 | 
			
		||||
  - Configuration
 | 
			
		||||
source:
 | 
			
		||||
  plugin: d7_shortcut_set_users
 | 
			
		||||
process:
 | 
			
		||||
  uid:
 | 
			
		||||
    -
 | 
			
		||||
      plugin: migration_lookup
 | 
			
		||||
      migration: d7_user
 | 
			
		||||
      source: uid
 | 
			
		||||
    -
 | 
			
		||||
      plugin: skip_on_empty
 | 
			
		||||
      method: row
 | 
			
		||||
  set_name:
 | 
			
		||||
    plugin: migration_lookup
 | 
			
		||||
    migration: d7_shortcut_set
 | 
			
		||||
    source: set_name
 | 
			
		||||
destination:
 | 
			
		||||
  plugin: shortcut_set_users
 | 
			
		||||
migration_dependencies:
 | 
			
		||||
  required:
 | 
			
		||||
    - d7_shortcut_set
 | 
			
		||||
    - d7_user
 | 
			
		||||
@ -0,0 +1,3 @@
 | 
			
		||||
finished:
 | 
			
		||||
  7:
 | 
			
		||||
    shortcut: shortcut
 | 
			
		||||
		Reference in New Issue
	
	Block a user