drupal-eca-recipe / eca_lib_0030
Create user entity from JSON
3.1.2
2025-08-10 14:06 UTC
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
README
ID: eca_lib_0030
This model demonstrates how to create a content entity with data from a JSON string. It also shows why creating a user entity "the classic way" doesn't work, more about the reasons for that are explained in the video.
The creation of this module was recorded and the video with additional explanations can be watch here.
Installation
## Import recipe
composer require drupal-eca-recipe/eca_lib_0030
# 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_0030
# Rebuilding caches is optional, sometimes required:
drush cr