Twig\Error\SyntaxError: Unknown "drupal_field" function.

Created on 30 May 2024, 29 days ago
Updated 31 May 2024, 28 days ago

After installing twig_tweak and clearing the Drupal cache, when I try to use the drupal_field() function in a template, I get the error...

Twig\Error\SyntaxError: Unknown "drupal_field" function.

The template where I am trying to use drupal_field() is views-view-fields.html.twig.

My Drupal version is 10.2.2.

πŸ› Bug report
Status

Closed: works as designed

Version

3.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States arnoldbird

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

Comments & Activities

  • Issue created by @arnoldbird
  • πŸ‡·πŸ‡ΊRussia Chi

    Do other TT functions work for you?

  • Status changed to Closed: works as designed 28 days ago
  • πŸ‡ΊπŸ‡ΈUnited States arnoldbird

    I can no longer reproduce the bug. I suspect the bug was occurring because I was misusing a views template. The drupal_field() function is working fine in other contexts.

Production build 0.69.0 2024