Migrate Key Value
No security coverage
This module provides tools to migrate data stored in Drupal's key-value store. It allows you to move data that isn't stored as standard entities or configuration, such as Pathauto states or custom module data, making it easier to remap or transfer this information.
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