Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited title
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

Drupal 8 - Fetch Link field Label and Link separately in views-view-fields filetemplate

Bumped by Community user
Source Link
June
  • 101
  • 3

Drupal 8 - Fetch Link field Label and Link separately in views-view-fields file

How can I fetch label and link field in views-view-fields--VIEW-NAME-HERE.html.twig file

So far I have tried

{{ fields.field_action_link.content }} give me the anchor tag prebuilt (html)
{{ fields.field_action_link.0.url }}
{{ content.field_action_link[0]['#url'] }}

but none of them seems to work for me. I am able to retrieve all other fields including image field.