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

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gilmar.lima created an issue. See original summary.

gilmar.lima’s picture

Issue summary: View changes

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

claudiu.cristea’s picture

Status: Active » Fixed

Thank you

Status: Fixed » Closed (fixed)

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