- Issue created by @trackleft2
The current implementation of user_expire_role_rules makes it challenging to utilize Drupal core's configuration validation effectively. The available options are structured in a way that prevents comprehensive validation at the configuration schema level. This could lead to inconsistent or invalid configurations being saved by means other than via the Form, for example via drush config:set
.
Switching to a configuration entity will provide better validation capabilities, align the implementation with modern Drupal practices, and make the rules easier to manage and extend.
Convert user_expire_role_rules
into a configuration entity. This approach involves:
drush generate config-entity
to scaffold the necessary boilerplate code for the entity.
A new admin interface will be introduced for managing user_expire_role_rules
. This includes:
Existing APIs related to user_expire_role_rules
will be deprecated or refactored to use the new configuration entity. New entity methods will be added for validation and retrieval of role expiration rules.
The current array-based schema for user_expire_role_rules
will be replaced with a configuration entity structure. This change will involve migrating existing configurations to the new entity.
Active
2.0
Code