You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the newer versions of twig, the behaviour of the defined test changed. With the latest version of twig installed, the wrap-macro throws an error:
The "defined" test only works with simple variables. File: /var/www/html/app/vendor/dachcom-digital/toolbox/templates/macro/wrap.html.twig Line: 2
We should change the tests the following:
templates/macro/wrap.html.twig
- {% if attribute(elementTheme, 'wrapper') is defined and elementTheme.wrapper is iterable %}+ {% if elementTheme.wrapper is defined and elementTheme.wrapper is iterable %}
The text was updated successfully, but these errors were encountered:
In the newer versions of twig, the behaviour of the
defined
test changed. With the latest version of twig installed, the wrap-macro throws an error:We should change the tests the following:
The text was updated successfully, but these errors were encountered: