drupal-eca-recipe / eca_lib_0020
Auto create entity with values from another one and the current user
3.1.2
2025-08-10 14:12 UTC
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
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