Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#7 | deprecated-function-l-2943480-7.patch | 1.25 KB | robertoperuzzo |
#3 | iubenda_integration-2943480-3.patch | 455 bytes | Snehal Brahmbhatt |
Comments
Comment #2
robertoperuzzoComment #3
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commented@robertoperuzzo, Please find the below-attached patch & let me know if any further changes are required.
Thanks!
Comment #4
robertoperuzzoComment #5
rachel_norfolkretagging
Comment #6
robertoperuzzoHi @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.Comment #7
robertoperuzzoComment #9
robertoperuzzoComment #10
robertoperuzzoComment #11
robertoperuzzo