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

[TwigExtra] Rename sort by Twig extension #94

Merged
merged 1 commit into from
Oct 7, 2024
Merged

[TwigExtra] Rename sort by Twig extension #94

merged 1 commit into from
Oct 7, 2024

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Oct 5, 2024

No description provided.

@@ -23,6 +23,7 @@ class SortByExtension extends AbstractExtension
public function getFilters(): array
{
return [
new TwigFilter('sylius_sort_by', [$this, 'sortBy']),
new TwigFilter('sort_by', [$this, 'sortBy']),
Copy link
Member Author

@loic425 loic425 Oct 5, 2024

Choose a reason for hiding this comment

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

I keep the "sort_by" function to make the build work (yeah, we still have an issue, I need some help from Monorepo experts).
I will change our usage in BootstrapAdminUi template(s) and remove it just after.

@loic425 loic425 changed the title Rename sort by Twig extension [TwigExtra] Rename sort by Twig extension Oct 5, 2024
@GSadee GSadee merged commit 4744379 into Sylius:main Oct 7, 2024
6 checks passed
@GSadee GSadee deleted the rename-sort-by-twig-function branch October 7, 2024 09:41
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