I had this use case where I had to show a label and link to another content type from within my paragraph. Because the theming was specific, I had to get the label and link in twig instead of just outputting {{ content.field_sector }}


{% if content.field_sector %}
   <a href="{{ path('entity.node.canonical', {'node':  paragraph.field_sector.0.entity.id}) }}" class="btn-primary">
    {{ paragraph.field_sector.0.entity.label() }}
{% endif %}

The trick is to directly getting the values from "paragraph", instead of "content".



Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!