drupal-eca-recipe/eca_lib_0030

Create user entity from JSON

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

3.1.2 2025-08-10 14:06 UTC

This package is auto-updated.

Last update: 2025-08-10 14:06:35 UTC


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