Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,39 @@
id: d6_taxonomy_term
label: Taxonomy terms
audit: true
migration_tags:
- Drupal 6
- Content
source:
plugin: d6_taxonomy_term
process:
# If you are using this file to build a custom migration consider removing
# the tid and revision_id fields to allow incremental migrations.
tid: tid
revision_id: tid
vid:
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
name: name
description: description
weight: weight
# Only attempt to stub real (non-zero) parents.
parent_id:
-
plugin: skip_on_empty
method: process
source: parent
-
plugin: migration_lookup
migration: d6_taxonomy_term
parent:
plugin: default_value
default_value: 0
source: '@parent_id'
changed: timestamp
destination:
plugin: entity:taxonomy_term
migration_dependencies:
required:
- d6_taxonomy_vocabulary

View File

@ -0,0 +1,24 @@
id: d6_taxonomy_vocabulary
label: Taxonomy vocabularies
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_taxonomy_vocabulary
process:
vid:
-
plugin: machine_name
source: name
-
plugin: make_unique_entity_field
entity_type: taxonomy_vocabulary
field: vid
length: 30
migrated: true
label: name
name: name
description: description
weight: weight
destination:
plugin: entity:taxonomy_vocabulary

View File

@ -0,0 +1,30 @@
id: d6_term_node
label: Term/node relationships
migration_tags:
- Drupal 6
- Content
deriver: Drupal\taxonomy\Plugin\migrate\D6TermNodeDeriver
source:
plugin: d6_term_node
process:
nid:
-
plugin: migration_lookup
migration:
- d6_node_complete
- d6_node
source: nid
-
plugin: node_complete_node_lookup
-
plugin: skip_on_empty
method: row
type: type
# The actual field name is dynamic and will be added by the builder.
destination:
plugin: entity:node
migration_dependencies:
required:
- d6_vocabulary_entity_display
- d6_vocabulary_entity_form_display
- d6_node

View File

@ -0,0 +1,30 @@
id: d6_term_node_revision
label: Term/node relationship revisions
audit: true
migration_tags:
- Drupal 6
- Content
deriver: Drupal\taxonomy\Plugin\migrate\D6TermNodeDeriver
source:
plugin: d6_term_node_revision
process:
vid:
-
plugin: migration_lookup
migration:
- d6_node_complete
- d6_node_revision
source: vid
-
plugin: node_complete_node_revision_lookup
-
plugin: skip_on_empty
method: row
type: type
# The actual field name is dynamic and will be added by the builder.
destination:
plugin: entity_revision:node
migration_dependencies:
required:
- d6_term_node
- d6_node_revision

View File

@ -0,0 +1,52 @@
id: d6_vocabulary_entity_display
label: Vocabulary display configuration
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_taxonomy_vocabulary_per_type
constants:
entity_type: node
view_mode: default
options:
label: hidden
type: entity_reference_label
weight: 20
field_prefix: field_
process:
entity_type: 'constants/entity_type'
view_mode: 'constants/view_mode'
options: 'constants/options'
bundle:
-
plugin: migration_lookup
migration: d6_node_type
source: type
-
plugin: skip_on_empty
method: row
# This value is only used in the 'field_name' process pipeline below.
raw_field_name:
-
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
-
plugin: skip_on_empty
method: row
field_name:
# Prepend field_ to avoid conflicts with base fields, and make sure the
# result is no longer than 32 characters.
-
plugin: concat
source:
- constants/field_prefix
- '@raw_field_name'
-
plugin: substr
length: 32
destination:
plugin: component_entity_display
migration_dependencies:
required:
- d6_vocabulary_field_instance

View File

@ -0,0 +1,56 @@
id: d6_vocabulary_entity_form_display
label: Vocabulary form display configuration
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_taxonomy_vocabulary_per_type
constants:
entity_type: node
form_mode: default
options:
weight: 20
field_prefix: field_
process:
entity_type: 'constants/entity_type'
form_mode: 'constants/form_mode'
options/type:
plugin: static_map
source: tags
map:
0: options_select
1: entity_reference_autocomplete_tags
options/weight: 'constants/options/weight'
bundle:
-
plugin: migration_lookup
migration: d6_node_type
source: type
-
plugin: skip_on_empty
method: row
# This value is only used in the 'field_name' process pipeline below.
raw_field_name:
-
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
-
plugin: skip_on_empty
method: row
field_name:
# Prepend field_ to avoid conflicts with base fields, and make sure the
# result is no longer than 32 characters.
-
plugin: concat
source:
- constants/field_prefix
- '@raw_field_name'
-
plugin: substr
length: 32
destination:
plugin: component_entity_form_display
migration_dependencies:
required:
- d6_vocabulary_field_instance

View File

@ -0,0 +1,45 @@
id: d6_vocabulary_field
label: Vocabulary field configuration
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_taxonomy_vocabulary
constants:
entity_type: node
type: entity_reference
target_entity_type: taxonomy_term
field_prefix: field_
process:
entity_type: 'constants/entity_type'
type: 'constants/type'
# This value is only used in the 'field_name' process pipeline below.
raw_field_name:
-
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
-
plugin: skip_on_empty
method: row
field_name:
# Prepend field_ to avoid conflicts with base fields, and make sure the
# result is no longer than 32 characters.
-
plugin: concat
source:
- constants/field_prefix
- '@raw_field_name'
-
plugin: substr
length: 32
'settings/target_type': 'constants/target_entity_type'
cardinality: cardinality
destination:
plugin: entity:field_storage_config
dependencies:
module:
- entity_reference
migration_dependencies:
required:
- d6_taxonomy_vocabulary

View File

@ -0,0 +1,78 @@
# cspell:ignore localizable
id: d6_vocabulary_field_instance
label: Vocabulary field instance configuration
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_taxonomy_vocabulary_per_type
constants:
entity_type: node
auto_create: true
selection_handler: 'default:taxonomy_term'
field_prefix: field_
process:
entity_type: 'constants/entity_type'
bundle:
-
plugin: migration_lookup
migration: d6_node_type
source: type
-
plugin: skip_on_empty
method: row
# This value is only used in the 'field_name' process pipeline below.
raw_field_name:
-
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
-
plugin: skip_on_empty
method: row
field_name:
# Prepend field_ to avoid conflicts with base fields, and make sure the
# result is no longer than 32 characters.
-
plugin: concat
source:
- constants/field_prefix
- '@raw_field_name'
-
plugin: substr
length: 32
label: name
_vid:
-
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
-
plugin: skip_on_empty
method: row
'settings/handler': 'constants/selection_handler'
'settings/handler_settings/target_bundles':
plugin: target_bundle
'settings/handler_settings/auto_create': 'constants/auto_create'
required: required
# Get the i18n taxonomy translation setting for this vocabulary.
# 0 - No multilingual options
# 1 - Localizable terms. Run through the localization system.
# 2 - Predefined language for a vocabulary and its terms.
# 3 - Per-language terms, translatable (referencing terms with different
# languages) but not localizable.
translatable:
plugin: static_map
source: i18ntaxonomy_vocabulary
default_value: 0
map:
0: false
1: true
2: false
3: true
destination:
plugin: entity:field_config
migration_dependencies:
required:
- d6_node_type
- d6_vocabulary_field

View File

@ -0,0 +1,44 @@
id: d7_taxonomy_term
label: Taxonomy terms
audit: true
migration_tags:
- Drupal 7
- Content
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
source:
plugin: d7_taxonomy_term
process:
# If you are using this file to build a custom migration consider removing
# the tid and revision_id fields to allow incremental migrations.
tid: tid
revision_id: tid
vid:
plugin: migration_lookup
migration: d7_taxonomy_vocabulary
source: vid
name: name
'description/value': description
'description/format': format
weight: weight
# Only attempt to stub real (non-zero) parents.
parent_id:
-
plugin: skip_on_empty
method: process
source: parent
-
plugin: migration_lookup
migration: d7_taxonomy_term
parent:
plugin: default_value
default_value: 0
source: '@parent_id'
changed: timestamp
langcode: language
destination:
plugin: entity:taxonomy_term
migration_dependencies:
required:
- d7_taxonomy_vocabulary
optional:
- d7_field_instance

View File

@ -0,0 +1,21 @@
id: d7_taxonomy_vocabulary
label: Taxonomy vocabularies
migration_tags:
- Drupal 7
- Configuration
source:
plugin: d7_taxonomy_vocabulary
process:
vid:
plugin: make_unique_entity_field
source: machine_name
entity_type: taxonomy_vocabulary
field: vid
length: 30
migrated: true
label: name
name: name
description: description
weight: weight
destination:
plugin: entity:taxonomy_vocabulary

View File

@ -0,0 +1,9 @@
finished:
6:
taxonomy:
- core
- taxonomy
7:
taxonomy:
- core
- taxonomy

View File

@ -0,0 +1,23 @@
id: taxonomy_settings
label: Taxonomy configuration
migration_tags:
- Drupal 6
- Drupal 7
- Configuration
source:
plugin: variable
variables:
- taxonomy_override_selector
- taxonomy_terms_per_page_admin
- taxonomy_maintain_index_table
source_module: taxonomy
process:
override_selector: taxonomy_override_selector
terms_per_page_admin: taxonomy_terms_per_page_admin
maintain_index_table:
plugin: default_value
default_value: true
source: taxonomy_maintain_index_table
destination:
plugin: config
config_name: taxonomy.settings