Skip to content

Auto create entity with values from another one and the current user

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/eca_lib_0020
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/eca_lib_0020

Purpose

This model reacts upon creating a new page node. It then creates a new article node, its title is populated with the page auther's name, some static text and the title of the created page.

The recorded video provides more explanation as we go on.

Dependencies

  • config
    • node.type.article
    • node.type.page
  • module
    • eca_content

Used plugins

Events

Actions

Changelog

v1

Initial version