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.
Follow-up to #2425901: Remove calls to UrlGenerator->generateFromPath if possible
Problem/Motivation
UrlGenerator::generateFromPath() is deprecated, so the twig function using it also needs to be deprecated now and removed in the parent issue.
Proposed resolution
Mark method as deprecated.
Remaining tasks
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | 2470569-1.patch | 615 bytes | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedComment #2
jhodgdonOK.
Comment #3
pwolanin CreditAttribution: pwolanin commentedComment #4
alexpottCommitted e7d2cd5 and pushed to 8.0.x. Thanks!
Comment #6
star-szrJust want to mention that somewhere along the way we'll need a change record because anyone using the
url_from_path
Twig function will be in for a surprise otherwise and it will be hard to track down why things have broken for them.Comment #7
pwolanin CreditAttribution: pwolanin commented@Cottser - so this just markes it deprecated, it's not removed, and dawehner suggested we could change the implementation if we want to keep a version in 8.0.0
Comment #8
star-szr@pwolanin - thanks! Sorry, I should have been clearer in my comment, I understand this is just deprecating. My point was more that people working in templates won't be looking here to see if things are deprecated or not :)
And if we have a way of keeping the functionality then that makes my comment moot, the implementation details don't matter for what I'm talking about.