Problem/Motivation

When using the EntityUpdateByKordiamEvent events, I noticed the class does not allow to use a modified version of the $entity.

In my use case I want to ignore the $entity object changes done by the ActionController->updateNode() and only apply changes to the $kordiam_revision to be saved to the dn_xxxxx node field . The part that needs changes -> https://git.drupalcode.org/project/kordiam/-/blob/1.0.9/src/Controller/A...

Proposed resolution

See the suggested patch, which adds a setNode method to the EntityUpdateByKordiamEvent class and loads the $entity from the event.

CommentFileSizeAuthor
entity_update_by_kordiam.patch1.67 KBonnia

Comments

onnia created an issue. See original summary.

kordiam’s picture

Version: 1.0.9 » 1.0.10
Assigned: Unassigned » kordiam
Status: Active » Fixed

Thank you for the module improvement.
The patch has been applied and included in version 1.0.10.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

kordiam’s picture

Status: Fixed » Closed (fixed)