Use condition instead of deprecated inline filter

Created on 12 June 2023, about 1 year ago
Updated 4 October 2023, 9 months 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.69.0 2024