-
Notifications
You must be signed in to change notification settings - Fork 10
Description
What is needed?
We would like the ability to sequence content from as:media directly in a Twig template. We can do this in the Formatter before loading content into Twig (see @DiegoPino 's #41 merge), but will be faster and cacheable if done in Twig.
Twig 2 provides a sort filter with ability to add custom arrow function:
https://twig.symfony.com/doc/2.x/filters/sort.html
Diego points out a mismatch of compatibility between Drupal Console and Twig 2.x:
Drupal 8.8.1 ships with Twig 1.4.2 but is compatible with Twig 2.x good, sadly drupal/console-core 1.9.4 is fixed on 1.x
So this issue is a TODO until we have Twig 2.x in Drupal Console. Wait for their update.
If for some reason this issue gets more urgent, the other option is to remove Console from our setup, since we mostly use Drush anyway.
Related to:
esmero/webform_strawberryfield#12
esmero/strawberryfield#60