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
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
Comment #3
sardara commentedTests fail as expected
Twig\Error\SyntaxError: Unknown "spaceless" tag.Comment #4
sardara commentedComment #7
claudiu.cristeaThank you. I think we should cut a first 2.1.0 release.