drupal-eca-recipe/eca_lib_0020

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

Installs: 46

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

3.1.2 2025-08-10 14:12 UTC

This package is auto-updated.

Last update: 2025-08-10 14:14:47 UTC


README

ID: eca_lib_0020

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.

Installation

## Import recipe
composer require drupal-eca-recipe/eca_lib_0020

# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/{{ rawid }}

# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0020

# Rebuilding caches is optional, sometimes required:
drush cr