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 logic that determinate if an event interpreter should react to an action on an entity should be a public method on the AuditLogInterpreterInterface
this will allow to create new interepreters that do the same but only change if they react to the event.
Proposed resolution
- Create an abstract class that can handle any entity event on any entity.
- Abstract the logic present on the first lines
reactTo
method of Node.php and User.php into a new method.
Remaining tasks
User interface changes
None
API changes
The described in the issue summary.
Comments