Skip to content

Add role to new user

Version

You can apply this model as a recipe (Drupal 10.3 or later) to your own Drupal site:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Import recipe
composer require drupal-eca-recipe/eca_lib_0035

# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/eca_lib_0035

# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0035

# Rebuilding caches is optional, sometimes required:
drush cr

Purpose

A variant of eca_lib_0029: «Add role to inserted or updated user». Except this variant is only concerned with new users, updated users are not processed.

Dependencies

  • config
    • node.type.article
    • node.type.page
    • taxonomy.vocabulary.tags
    • user.role.content_editor
  • module
    • comment
    • contextual
    • eca_base
    • eca_content
    • eca_user
    • file
    • modeler_api
    • node
    • path
    • system
    • taxonomy
    • toolbar

Used plugins

Events

Conditions

Actions

Changelog

v1

Initial version