Skip to content

Cross references

Version v1

Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):

1
2
composer require drupal-eca-recipe/cross_references
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/cross_references

Purpose

Two different node types are referring each other. If one node gets saved with a reference to another node, the other node gets automatically updated to link back to the first node.

Dependencies

  • config
    • field.field.node.type_1.field_other_node
    • field.field.node.type_2.field_other_node
    • field.storage.node.field_other_node
    • node.type.type_1
    • node.type.type_2
  • module
    • eca_base
    • eca_content
    • node

Used plugins

Events

Conditions

Actions

Changelog

v1

Initial version