Port cm_tools_update_missing_default_field_values_insert_with_languages from Drupal 7 version

Created on 14 May 2025, 23 days ago

Problem/Motivation

In the Drupal 7 version of this module we had some nice functionality for looping over entities, and doing interesting things with them in update hooks.

Specifically we had cm_tools_update_missing_default_field_values_insert: https://github.com/computerminds/cm_tools/blob/bc2299cfa15063f4baff2afe7... that would allow you to specify an entity type, bundle and some fields to fill in the 'default value' for.

This was super for when adding a new field, because you could then make it required, and existing entities would have their values updated to the default.

Steps to reproduce

Proposed resolution

Port the code to Drupal 10!

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom steven jones

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024