Open AugustMiller opened 1 year ago
We should explicitly state that Collections in Twig behave exactly the same as collections in PHP, except for methods that only accept anonymous functions/closures as arguments.
And potentially add a link to Craft Closure, which allows you to use Collections in Twig the way you thought you could:
https://github.com/nystudio107/craft-closure
We should explicitly state that Collections in Twig behave exactly the same as collections in PHP, except for methods that only accept anonymous functions/closures as arguments.