Add information for when filter filter was added in 2.x branch

The current "versionadded" info can be confusing to developers, if they assume 2.9 > 1.41 and don't know that 1.x and 2.x branches are still developed simultaneously.
This commit is contained in:
Jörn Wagner
2019-05-21 12:53:40 +02:00
committed by Fabien Potencier
parent 571929f263
commit a05da6dbbe
+1 -1
View File
@@ -2,7 +2,7 @@
=========
.. versionadded:: 1.41
The ``filter`` filter was added in Twig 1.41.
The ``filter`` filter was added in Twig 1.41 and 2.10, if you're on 2.x.
The ``filter`` filter filters elements of a sequence or a mapping using an arrow
function. The arrow function receives the value of the sequence or mapping: