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.

Issue fork file_link-3349930

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sardara created an issue. See original summary.

sardara’s picture

Tests fail as expected
Twig\Error\SyntaxError: Unknown "spaceless" tag.

sardara’s picture

Assigned: sardara » Unassigned
Status: Active » Needs review

claudiu.cristea made their first commit to this issue’s fork.

claudiu.cristea’s picture

Status: Needs review » Fixed

Thank you. I think we should cut a first 2.1.0 release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.