migrate_key_value
No security coverage
Migrate Key Value provides Drupal migrate source and destination plugins for the Drupal key-value store. This allows migrations to read from and write to any key-value collection, making it possible to migrate data that is not stored in regular entity or configuration storage.
Common use cases include:
- Migrating Pathauto states (pathauto_state:node, pathauto_state:taxonomy_term, etc.)
- Migrating any custom module data stored in the key-value store
- Remapping key-value entries where the key (e.g. an entity ID) changes between source and destination
Example:
id: migrate_my_collection
label: 'Migrate my key-value collection'
source:
plugin: key_value
collection: 'my_module.my_collection'
key: migrate
process:
name: name
value: value
collection:
plugin: default_value
default_value: 'my_module.my_collection'
destination:
plugin: key_value