I\'m trying to retrieve the URL and the Title values of a Link field in Drupal 8.
In my custom controller, I retrieve the nodes with:<
If you want to do this in a field template instead of a node template do this:
{% for item in items %}
{{ item.content['#url'] }}
{{ item.content['#title'] }}
{% endfor %}
Alternately, if this is not a multi-value field you can just do this instead:
{{ items|first.content['#url'] }}
{{ items|first.content['#title'] }}