X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Ftwig%2Ftwig%2Fdoc%2Ffilters%2Flength.rst;h=e177b7b69ca0a2553ebf5c4a26ffbdf3a5088ff3;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=5620f3b3c4d6f16eb6f32a13e5db290400855c93;hpb=eba34333e3c89f208d2f72fa91351ad019a71583;p=yaffs-website diff --git a/vendor/twig/twig/doc/filters/length.rst b/vendor/twig/twig/doc/filters/length.rst index 5620f3b3c..e177b7b69 100644 --- a/vendor/twig/twig/doc/filters/length.rst +++ b/vendor/twig/twig/doc/filters/length.rst @@ -14,6 +14,8 @@ return value of the ``count()`` method. For objects that implement the ``__toString()`` magic method (and not ``Countable``), it will return the length of the string provided by that method. +For objects that implement the ``IteratorAggregate`` interface, ``length`` will use the return value of the ``iterator_count()`` method. + .. code-block:: jinja {% if users|length > 10 %}