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
Ask your assistant about Migrate Key Value
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.x-dev | Dev | 11 | May 28, 2026 |