drupal-eca-recipe / eca_lib_0030
Creates a content entity from a JSON string, and shows why the straightforward approach does not work for user entities.
Package info
gitlab.lakedrops.com/drupal/recipes/eca_lib_0030
Type:drupal-recipe
pkg:composer/drupal-eca-recipe/eca_lib_0030
3.1.7
2026-09-01 14:36 UTC
Requires
- drupal/eca: *
- drupal/modeler_api: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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/eca_lib_0030
# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0030
# Rebuilding caches is optional, sometimes required:
drush cr