Needs review
Project:
Redirect
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2026 at 19:04 UTC
Updated:
5 May 2026 at 19:20 UTC
Jump to comment: Most recent
Redirect entities don't have a changed field. I have a process that needs to run regularly on all entities which I'm significantly optimizing by excluding all entities that haven't been changed since the last process run. Without a changed field on redirect entities I have to recheck all redirect entities every time.
Implement EntityChangedInterface on the Redirect entity class.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
david.muffley commentedI set the initial value of the changed field to the created field value. If instead you want it could be set to the current time when the update hook is run. I have no preference myself.