Showing link/url values of Field Collection Module

I’m creating a page template and I like to output the values of different fields from Field Collection Module Basically I have this line of code: {% for market in node.field_market %} <p>tagline: {{ market.getFieldCollectionItem().field_market_tagline.value|e }}</p> <h2>title: {{ market.getFieldCollectionItem().field_market_title.value|e }}</h2> <br> link: {{ market.getFieldCollectionItem().field_linkmarket.uri }}[…]

Drupal 8 Field Collection Module: Display field values in twig template

I’m creating a twig template and I like to output the values of different fields from Field Collection Module Basically I have this line of code: {% for market in node.field_market %} <p>tagline: {{ market.getFieldCollectionItem().field_market_tagline.value|e }}</p> <h2>title: {{ market.getFieldCollectionItem().field_market_title.value|e }}</h2> <br> link: {{ market.getFieldCollectionItem().field_linkmarket.uri }}[…]