Replace deprecated usage of \Drupal::l with Link::fromTextAndUrl.

Comments

heykarthikwithu created an issue. See original summary.

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Active » Needs review
StatusFileSize
new1007 bytes

1. replaced the deprecated usage of \Drupal::l with Link::fromTextAndUrl.

michelle’s picture

Thanks for this. Is the module otherwise working for you? I don't personally use it. I ported it for a work client and haven't gotten much outside feedback. If it's working for people, I'll get this cleaned up and get a new release out sometime this week.

heykarthikwithu’s picture

Status: Needs review » Active

what i added in the patch was a replace for a deprecated usage. i did not enable this module, since their was no need to test the code after applying this minor change.

michelle’s picture

Status: Active » Needs review

Oh, you aren't using it? Just a drive by patching? ;) Setting this back to needs review because I haven't gotten to it, yet. Not sure if it will be this week. I ended up with a task that sucked up all my internal time so it might be next week.

michelle’s picture

Status: Needs review » Fixed

Committed, thanks!

michelle’s picture

Status: Fixed » Needs work

"since their was no need to test the code after applying this minor change."

Wow... I actually fell for that. LOL! My bad for just committing this untested. I'll give myself 50 lashes with a wet noodle. ;)

As a matter of fact, there _is_ a need to test this as it causes a fatal error. I'm in the process of figuring out how to fix it.

michelle’s picture

Status: Needs work » Fixed
StatusFileSize
new1005 bytes

We were making this waaaay too complicated. Fixed it. Patch attached for reference but marking fixed because I'm going to go ahead and commit it.

  • Michelle committed 63c7c14 on 8.x-1.x
    Issue #2653406 by Michelle: Replace broken Link::fromTextAndUrl
    

Status: Fixed » Closed (fixed)

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