Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
2 Nov 2015 at 13:46 UTC
Updated:
6 Dec 2015 at 03:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerComment #3
sdstyles commentedComment #4
himanshu5050 commentedComment #5
joshi.rohit100@Himanshu5050 - Please try to upload the interdiff as well as I couldn't tell the difference between #3 and #4
Comment #6
nicrodgersThe patch in #3 looks good to me. The patch in #4 has less information (does not say when it will be removed). So #3 RTBC
Comment #7
nicrodgersActually...feedback on #3
Would be helpful (and consistent with the other example) to provide more information, such as:
Instead create a \Drupal\Core\Url object directly, for example using Url::fromRoute().
Comment #8
rakesh.gectcrComment #9
rakesh.gectcr@nicrodgers,
I have updated your comments #6 and #7.
Comment #10
rakesh.gectcrI have modified the example of usage;
Comment #11
jhodgdonDeciding that something is deprecated is not a Documentation issue.
Comment #12
dawehner@jhodgdon
Well this was already totally decided, so you think the deprecation step is its own thing and should be still discussed?
Comment #13
dawehnerYou should use the Link object instead ...
Let's use
$link = Link::fromTextAndUrl($text, $url);as exampleComment #14
dawehnerComment #15
rakesh.gectcr@dawehner
I updated the patch according to above comments.
Comment #16
rakesh.gectcrComment #17
dawehnerThank you
Comment #18
dawehner.
Comment #21
xjmI think it does make sense to file the deprecations against their respective component.
Committed and pushed to 8.1.x and 8.0.x (with the addition of the missing word "and" fixed on commit). Thanks all for working on this!