Please Disable Your Browser Adblock Extension for our site and Refresh This Page!

our ads are user friendly, we do not serve popup ads. We serve responsible ads!

Refresh Page
Skip to main content
On . By CodimTh
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 (Drupal & Laravel)

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

Web Posts

Search

Page Facebook