Skip to content

Consider removing filter/pluck filters #2010

@nlemoine

Description

@nlemoine

Twig recently introduced some useful array methods like column (since 2.8.0), filter, map and reduce (since 1.41/2.10.0).

https://github.com/twigphp/Twig/blob/2.x/CHANGELOG

https://twig.symfony.com/doc/2.x/filters/column.html
https://twig.symfony.com/doc/2.x/filters/filter.html
https://twig.symfony.com/doc/2.x/filters/map.html
https://twig.symfony.com/doc/2.x/filters/reduce.html

Timber has its own filters pluck and filter. The second one makes native Twig filter unusable.

This would probably introduce a BC break. But would you consider this for 2.0+?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions