git subrepo commit (merge) mailcow/src/mailcow-dockerized
subrepo: subdir: "mailcow/src/mailcow-dockerized"
merged: "32243e56"
upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git"
branch: "master"
commit: "e2b4b6f6"
git-subrepo: version: "0.4.3"
origin: "???"
commit: "???"
Change-Id: I51e2016ef5ab88a8b0bdc08551b18f48ceef0aa5
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/lib/vendor/twig/twig/doc/filters/map.rst b/mailcow/src/mailcow-dockerized/data/web/inc/lib/vendor/twig/twig/doc/filters/map.rst
new file mode 100644
index 0000000..1083bfe
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/lib/vendor/twig/twig/doc/filters/map.rst
@@ -0,0 +1,34 @@
+``map``
+=======
+
+The ``map`` filter applies an arrow function to the elements of a sequence or a
+mapping. The arrow function receives the value of the sequence or mapping:
+
+.. code-block:: twig
+
+ {% set people = [
+ {first: "Bob", last: "Smith"},
+ {first: "Alice", last: "Dupond"},
+ ] %}
+
+ {{ people|map(p => "#{p.first} #{p.last}")|join(', ') }}
+ {# outputs Bob Smith, Alice Dupond #}
+
+The arrow function also receives the key as a second argument:
+
+.. code-block:: twig
+
+ {% set people = {
+ "Bob": "Smith",
+ "Alice": "Dupond",
+ } %}
+
+ {{ people|map((last, first) => "#{first} #{last}")|join(', ') }}
+ {# outputs Bob Smith, Alice Dupond #}
+
+Note that the arrow function has access to the current context.
+
+Arguments
+---------
+
+* ``arrow``: The arrow function