drupal-eca-recipe/eca_lib_0026

Grant new user role after 3 conditions are met

Installs: 10

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:30:15 UTC


README

ID: eca_lib_0026

This model automatically adds or removes a role from a user, when this gets updated, depending upon 3 conditions that are stored with the user entity. Only if all 3 conditions are met, the role gets added. In all other cases the role gets removed.

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_0026
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/eca_lib_0026