Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Field Updater Service

23 sites Security covered Drupal 10–11
View on drupal.org

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.

The easiest and fastest way to update fields in Drupal. Provides a batch processing service to copy values from one or more field sources to a target field.

Features

  • Field mappings handled via configuration entities: entity_type, bundle, field_target, mappings
  • Service to batch update field value based on configuration
  • Can map to ANY field type from multiple field source values from the same entity.
  • Supports custom default input and explicit NULL for values.
  • Multi-lingual support.
  • Reference fields (entity_reference & entity_reference_revisions) supported as a field mapping source.
  • Eligible field mappings matched by target field schema.

Quick start

  1. Add a new field updater at /admin/config/field-updater
  2. Select: Entity type, Bundle, and Target field
  3. Select: Entity reference (if applicable) as the Field mappings source if you want to copy values from an entity_reference_revisions or entity_reference field type.
  4. Save the form and add mappings for the source.
  5. Copy content from Source to Target with drush field-updater:update
  6. Enter the number (#) of the field updater instance, and type "yes" when prompted.
  7. Copy example update hook from drush result to your own custom module's .install file for easy deployment to other environments.

Drush commands
drush field-updater:list - return a list of available updaters
drush field-updater:update - This drush command will prompt for available updater entities to select and provide example update hook upon completion of running the service.

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 module will provide the ability to copy existing values from other fields to this field type.

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.

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
1 month ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core 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