Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The .module file should basically only contain hook implementations, and they should preferably contain as little logic as possible, delegating heavy logic to services.
Proposed resolution
Create a Comment Notify service that can deal with the logic.
Comments
Comment #2
DamienMcKennaThis should be considered a nice-to-have cleanup task and so should be done after a barebones 1.0 is finished.
Comment #3
cedeweyThere is now a stable release of this module so this clean up work can proceed.