How to rewrite the field of a Drupal 8 view with TWIG?

时间:2019-04-16 23:24:31

标签: drupal twig drupal-8

In drupal I created a view with the machine name cgv_product.

This view contains the fields "Product Name" and "Custom Text".

In the "Custom Text" field, the {{ name }} token is available to display the product number.

I created a template with the name views-view-fields--cgv_produit.html.twig it works but if I put the token {{ name }} in the code, the token is not rendered.

How to display the product name token in my template ?

views-view-fields--cgv_product.html.twig

0 个答案:

没有答案