drupal-eca-recipe / eca_lib_0012
Count user logins
3.1.1
2025-08-03 11:21 UTC
Requires
- drupal/core: >=11.2
- drupal/eca: ^3
- drupal/eca_tamper: *
README
ID: eca_lib_0012
This model adds a number field to the user entity with a default value 0. It then increments that value, each time that user logs into the site.
Installation
## Import recipe
composer require drupal-eca-recipe/eca_lib_0012
# 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_0012
# Rebuilding caches is optional, sometimes required:
drush cr