Problem/Motivation

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.

Proposed resolution

Implement EntityChangedInterface on the Redirect entity class.

Issue fork redirect-3588537

Command icon Show commands

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

david.muffley created an issue. See original summary.

david.muffley’s picture

Status: Active » Needs review

I 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.