Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Modification of Feed Attributes in EVENT_BEFORE_PROCESS_FEED #1582

Open
wants to merge 3 commits into
base: 6.x
Choose a base branch
from

Conversation

DieterVanhove
Copy link

Description

Currently, it's not possible to modify the feed attributes in the beforeProcessFeed function. While there is an event triggered EVENT_BEFORE_PROCESS_FEED, it doesn't allow editing of the feed attributes. For my use case, I need the ability to change the existingElements that are later deleted or disabled.

To address this, I’ve introduced a breaking change: the feed now returns an array instead of a FeedModel. This aligns with the pattern used by other events, which also return an array of feed attributes. Additionally, I've added an element key to simplify access to the feed element type you're currently working with.

Please let me know if any adjustments are needed, and I’d appreciate any feedback to help get this merged.

Related issues

#1577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant