Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When rendering a remote file link on Drupal 8 (Twig 1.x) we receive this error:
Twig\Error\SyntaxError: Unknown "apply" tag. in Twig\Parser->subparse()
Steps to reproduce
Install Drupal 8 with file link.
Create a content type with a reference field.
Upload a remote file
Reference this file on a content.
Proposed resolution
Change the twig filter {% apply spaceless %} to only {% spaceless %}
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork file_link-3239397
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 #2
gilmar.lima CreditAttribution: gilmar.lima for European Commission and European Union Institutions, Agencies and Bodies commentedComment #6
claudiu.cristeaThank you