drupal-eca-recipe/eca_lib_0018

Keep 2 fields in sync

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

dev-main 2024-08-07 10:59 UTC

This package is auto-updated.

Last update: 2024-11-07 11:40:23 UTC


README

ID: eca_lib_0018

This model demonstrates how a text field in a user entity can be kept in sync with a similar field in an associated profile entity. This works in both directions. Regardless which of the entities gets updated, the other one will be updated automatically as well.

Without paying attention, this could lead into an infinite loop. Therefore, the related entity only gets updated if the field values are not the same already.

The creation of that model has been recorded: Watch the video

Installation

composer require drupal-eca-recipe/eca_lib_0018
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/eca_lib_0018