Twig spaceless tag is not available in Drupal 10

Created on 23 March 2023, over 1 year ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

Drupal 10 uses Twig 3.x, where the {% spaceless %} tag was completely removed in favour of the {% apply spaceless %} filter. When using the provided file link formatters, the page rendering crashes.

Steps to reproduce

Have a file link field rendered using any of the two file link formatters.

Proposed resolution

Switch to the filter. In order to do so, we need to drop Drupal 8.x compatibility.

Remaining tasks

Create failing test and patch.

User interface changes

None.

API changes

Dropping Drupal 8.x support.

Data model changes

None.

๐Ÿ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly sardara

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

Comments & Activities

Production build 0.69.0 2024