Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field Updater Service

Security covered Under active development 71 sites

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_reference and entity_reference_revisions (including Paragraphs) as sources, resolving the referenced entity’s values
  • Multilingual support
  • Custom default values and explicit NULL for 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

  1. Install the module.
  2. Go to /admin/config/field-updater and create a new field updater.
  3. Choose the entity type, bundle, and target field (usually a Custom Field or Compound Field).
  4. If the source data lives on a referenced entity or Paragraph, select the entity reference field as the mapping source.
  5. Map individual source fields to the target subfields.
  6. Run drush field-updater:update, select the updater, and copy the generated update hook into a module’s .install file 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');
}

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.

Drupal 10–11

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

Tracked releases
4
Tracked since
Mar 2025
Latest release
4 months ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Active

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