This module provides a service to efficiently update fields on Drupal entities by copying values from one or more source fields to a target field. It allows you to configure these mappings through Drupal's administrative interface for easy management and supports multi-language content.
Consolidate multiple existing Field API fields into a single compound or custom field (e.g. Custom Field or Compound Field) without writing complex batch update hooks.
Provides a configurable batch service that copies values from one or more source fields (including entity references and Paragraphs) into the subfields of a target field that stores everything in a single table.
Typical use case
You have several separate fields (field_title, field_url, field_description, etc.) or a Paragraphs/entity reference structure, and you want to replace them with a single Custom Field or Compound Field whose subfields live in one table. This module handles the data migration so you can make that content-model change safely and repeatedly.
Features
- Mappings stored as configuration entities (exportable and deployable)
- Batch processing of existing entities
- Map from multiple source fields on the same entity into the subfields of a target field
- Supports
entity_referenceandentity_reference_revisions(including Paragraphs) as sources, resolving the referenced entity’s values - Multilingual support
- Custom default values and explicit
NULLfor unmapped or missing data - Schema-aware matching of eligible mappings to the target field
- Drush commands (
field-updater:list,field-updater:update) that also generate example update hooks for deployment
Quick start
- Install the module.
- Go to
/admin/config/field-updaterand create a new field updater. - Choose the entity type, bundle, and target field (usually a Custom Field or Compound Field).
- If the source data lives on a referenced entity or Paragraph, select the entity reference field as the mapping source.
- Map individual source fields to the target subfields.
- Run
drush field-updater:update, select the updater, and copy the generated update hook into a module’s.installfile for deployment.
This is the practical companion to Custom Field and Compound Field when you need to move existing content instead of starting from an empty field.
Example Update Hook
/**
* Runs the FieldUpdaterService for the 'update_field_tags' config entity.
*/
function my_module_update_10001() {
// Get the FieldUpdaterService.
$updater_service = \Drupal::service('field_updater_service.updater');
$updater_service->updateEntities('update_field_tags');
}
Recommended modules/libraries
Custom Field - This module is an optimized alternative to paragraphs & blocks and field_updater_servicer module will provide the ability to copy existing values from other fields to this field type.
Compound Field - This module is currently being developed to be the eventual successor to Custom Field and is an ideal candidate for using this service when migrating over.
Similar projects
Bulk Update Fields - Designed to work with views as an action. Our module is simpler in scope and allows to define the mappings in separate configuration entities that can be run via update hooks and Drush commands by simply passing the config id as an argument.
Feeds - The feeds module provides functionality to import data from various sources to create new entities or update existing entities from data source based on a unique mapping id. The field_updater_service module will however fill the gap of being able to update fields from already existing values on the same entity and eliminate the need for complex update hooks to handle the batch processing.
Ask your assistant about Field Updater Service
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
- field Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10–11 | Jul 16, 2026 | ||
| 1.0.0-beta2 | Pre-release | 10–11 | Jun 30, 2025 | ||
| 1.0.0-beta1 | Pre-release | 10–11 | Mar 25, 2025 | ||
| 1.0.x-dev | Dev | 10–11 | Mar 25, 2025 |