Problem/Motivation
As of https://docs.google.com/document/d/1BxgNvyIRcxYGzzA1DLkZ6A4-c8gGFixypNvP... we want to make clear which bits of the URL generation
machinery should be used
Proposed resolution
* \Drupal\Core\Routing\UrlGeneratorInterface::generateFromPath() should be used as generateFromRoute().
* It should point to \Drupal\Core\Url instead
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | 2606388-19.patch | 623 bytes | zpawn |
Comments
Comment #2
sdstyles commentedComment #3
legovaerThere isn't a documenting standard for
@internal, but I'd suggest to start the actual documentation on the next line.Something like:
Comment #4
dawehnerSo yeah @internal should not have additional information, see some of the other related patches for examples.
Comment #5
snehi commentedDone as Suggested in #3 and #4.
Comment #6
dawehnerThank you!
Comment #7
xjmThis patch is changing
generateFromRoute(), notgenerateFromPath(). There's #2606386: mark \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() as internal for the former.https://docs.google.com/document/d/1BxgNvyIRcxYGzzA1DLkZ6A4-c8gGFixypNvP... specifies also deprecating
generateFromPath().Discussed with @effulgentsia and we agreed on making this an RC target to minimize the surface of the routing and URL generation APIs prior to release.
Comment #8
anil280988 commentedDescription and "Use \Drupal\Core\Url instead." text should be in different line, in accordance with other patches.
Also, do we have to make changes in generateFromPath() function?
Comment #10
dawehner@anil280988
Please look at #7
Comment #11
anil280988 commentedHi dawehner/xjm,
Could you point me out to generateFromPath() function. Where to make changes.
Comment #12
cilefen commentedComment #13
snehi commentedThis issue is already resolved.
@Anil take a fresh clone and check. Your patch is already there.
Thanks.
Comment #14
cilefen commented\Drupal\Core\Routing\UrlGeneratorInterface::generateFromPath() does not exist.
Comment #15
snehi commentedComment #16
snehi commentedComment #17
pwolanin commentedComment #18
snehi commentedComment #19
zpawn commentedreroll
Comment #20
andypostComment #22
roderikDone in #2606378: mark \Drupal\Core\Routing\UrlGeneratorInterface::generate() as internal