Skip to main content
Category:

Drupal 8 Paragraphs Extract URL from link field

 

Example how to extract URL from link field in Paragraphs in Drupal 8 & 9

 

// For extracting the URL

{{paragraph.field_carousel_link.get(0).getUrl().toString()}}

// For Extracting the Link Title

{{paragraph.field_carousel_link.title}}

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts

Search

Page Facebook