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.
I have Removed the deprecated method \Drupal::l and replaced \Drupal::l with Link::fromTextAndUrl in Link module.
Please find the attached patch.
Comment | File | Size | Author |
---|---|---|---|
#18 | replace_drupal_l_with-2699545-18.patch | 3.21 KB | Mac_Weber |
#18 | interdiff-15-18.txt | 2.61 KB | Mac_Weber |
#15 | drupal-2699545-15.patch | 1.82 KB | N.kishorekumar |
#10 | link1.patch | 1.79 KB | Swetha Yarla |
#8 | link1.patch | 1.79 KB | Swetha Yarla |
Comments
Comment #3
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedComment #4
heykarthikwithuUpdated with changes.
Comment #6
vg3095 CreditAttribution: vg3095 commentedComment #8
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedComment #10
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedComment #11
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedComment #12
dawehnerWe should always patch against the latest dev version. Thank you for providing a patch!
Comment #13
N.kishorekumar CreditAttribution: N.kishorekumar as a volunteer and at Valuebound commentedRe rolling the patch to the version 8.2.x-dev
Comment #14
N.kishorekumar CreditAttribution: N.kishorekumar as a volunteer and at Valuebound commentedComment #15
N.kishorekumar CreditAttribution: N.kishorekumar as a volunteer and at Valuebound commentedPlease find the patch...
Comment #17
dawehnerThose changes don't really make sense. Here we want to check for the actual string, so maybe use ->toString in there
Comment #18
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commented- Fixed what was pointed by @dawehner at #17
- Fixed preprocess function to use the same object as before for rendering
- Moved
use
to alphabetical order- Changed comment at twig template:
Comment #19
mahtoranjeet CreditAttribution: mahtoranjeet as a volunteer and at Srijan | A Material+ Company commentedReviewed and Tested Patch.
Replaced \Drupal::l with Link::fromTextAndUrl() in Link Module
Patch is working as expected.
Comment #29
quietone CreditAttribution: quietone as a volunteer commentedThanks to everyone who worked on this patch.
This was fixed in #2731817: Replace all calls to the deprecated Drupal::url() function in Core in April 2019, I am closing this as a duplicate of that one.