As reported in l() method page

Deprecated
in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Link instead. Example:

$link = Link::fromTextAndUrl($text, $url);

we need to replace this function in the whole module code.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robertoperuzzo created an issue. See original summary.

robertoperuzzo’s picture

Issue summary: View changes
Snehal Brahmbhatt’s picture

Status: Active » Needs review
FileSize
455 bytes

@robertoperuzzo, Please find the below-attached patch & let me know if any further changes are required.

Thanks!

robertoperuzzo’s picture

Assigned: Unassigned » robertoperuzzo
Issue tags: +DrupalCon Amsterdam 2019
rachel_norfolk’s picture

Issue tags: -DrupalCon Amsterdam 2019 +Amsterdam2019

retagging

robertoperuzzo’s picture

Hi @dev20.addweb,
your patch uses Url::fromRoute($text, $iubenda_url). The parameters you pass are incorrect, as you can see here.

I'm fixing it using Link::fromTextAndUrl($text, $iubenda_url);. I'll merge it soon.

robertoperuzzo’s picture

robertoperuzzo’s picture

Status: Needs review » Reviewed & tested by the community
robertoperuzzo’s picture

Assigned: robertoperuzzo » Unassigned
robertoperuzzo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.