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.
Problem/Motivation
The $name parameter for UrlGenerator::getRoute() is documented incorrectly. $name can be a string or an instance of SymfonyRoute.
Proposed resolution
Update the UrlGenerator::getRoute() docblock properly according to the Drupal API standards.
Remaining tasks
- Provide a patch.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2509694-10.patch | 643 bytes | joshi.rohit100 |
#7 | 2509694-7.patch | 664 bytes | kfitz |
Comments
Comment #1
cilefen CreditAttribution: cilefen commentedComment #2
joshi.rohit100Comment #3
kfitz CreditAttribution: kfitz at Acro Commerce commentedCreated a new patch to correct the typos in #2.
Comment #4
cilefen CreditAttribution: cilefen commentedThe issue is for UrlGenerator::getRoute().
Comment #5
kfitz CreditAttribution: kfitz at Acro Commerce commentedMade corrections from #4.
Comment #6
cilefen CreditAttribution: cilefen commentedLet's make this "The Symfony route instance or the route name to fetch." and it will be ready to go.
Comment #7
kfitz CreditAttribution: kfitz at Acro Commerce commentedMade alterations from #6.
Comment #8
cilefen CreditAttribution: cilefen commentedThank you!
Comment #9
alexpottI think this should be:
To match existing documentation in the interface.
Comment #10
joshi.rohit100Comment #12
joshi.rohit100So now documentation change causes test failure :)
Comment #14
cilefen CreditAttribution: cilefen commentedAs this is fixed according to #9, this is RTBC.
Comment #15
alexpottDocs are not frozen in beta. Committed f236f3e and pushed to 8.0.x. Thanks!