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

[4.x] Make tags with old __call methods macroable by using wildcard method instead. #9553

Merged
merged 6 commits into from
Feb 22, 2024
Merged

[4.x] Make tags with old __call methods macroable by using wildcard method instead. #9553

merged 6 commits into from
Feb 22, 2024

Conversation

sylvesterdamgaard
Copy link
Contributor

@sylvesterdamgaard sylvesterdamgaard commented Feb 21, 2024

Make tags with the old __call methods macroable by using wildcard method instead.

Fix issue with $this not being available inside of macroables due to wrong namespace check.

Adding events to hook into the collections tag on Fetching Entries and Fetched Entries.
This allows to mutate to params before fetching and allows to mutate or register the output before returning the entries.

@sylvesterdamgaard sylvesterdamgaard changed the title Make tags with old __call methods macroable by using wildcard method instead. [4.x] Make tags with old __call methods macroable by using wildcard method instead. Feb 21, 2024
@sylvesterdamgaard sylvesterdamgaard marked this pull request as ready for review February 21, 2024 10:30
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the event stuff. We can make it a separate PR.

@sylvesterdamgaard
Copy link
Contributor Author

Please remove the event stuff. We can make it a separate PR.

Ok. Removed the events from this PR. I will make a separate one with the events.

@jasonvarga jasonvarga merged commit b9c9fa2 into statamic:4.x Feb 22, 2024
18 checks passed
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.

2 participants