drupal-eca-recipe/eca_lib_0029

Add role to inserted or updated user

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-recipe

dev-main 2024-08-07 10:59 UTC

This package is auto-updated.

Last update: 2024-11-07 11:25:45 UTC


README

ID: eca_lib_0029

This model demonstrates how to add a role to an inserted or updated user entity. There are actually 3 potential ways of doing this, only 1 of them being recommended. The recorded session (see link below) shows the issues you can run into when choosing one of the other options and it may become transparent, why the third option is the best of the available ones.

The creation of this module was recorded and the video with additional explanations can be watched here.

Installation

composer require drupal-eca-recipe/eca_lib_0029
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/eca_lib_0029