Use condition instead of deprecated inline filter

Created on 12 June 2023, over 1 year ago
Updated 4 October 2023, about 1 year ago

Problem/Motivation

Twig 3 does not use the inline conditional like:
{% for key, item in array if key|first != '#' %}
....

Steps to reproduce

Open layout builder and add some of this blocks you'll get error.

Proposed resolution

Use condition as an if statement.
Instead of
{% for key, item in array if key|first != '#' %}
Use
{% for key, item in array %}
{% if key|first != '#' %}
....

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇷Argentina tpzurdo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024