Needs work
Project:
Drupal core
Version:
main
Component:
documentation
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 May 2016 at 16:38 UTC
Updated:
18 Feb 2024 at 11:47 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
Pradnya Pingat commentedAdded documentation for three special routing names.
Comment #3
surbz commented"Special path" makes no sense, it should be only "Path"
Remove white space.
Comment #4
ashishdalviFixed coding standards issues and suggestions.
Comment #5
ashishdalviComment #6
dawehnerMh, the null generator doesn't really seem to be the best place to document it, don't you think so? This class is for example not used on runtime. Maybe the drupal specific url generator:
\Drupal\Core\Routing\UrlGeneratorInterfaceis a better place.Comment #7
jhodgdonYes to #6. Also:
This whole documentation area doesn't make sense to me ...
What does "available" names mean?
Also shouldn't it be part of the $name parameter docs?
Also the grammar needs attention.
Comment #8
joachim commentedYup, something like:
Though I can't figure out the difference between current and none.
Comment #9
vinay15Comment #10
vinay15<current>would be to get current page url.<none>is a menu link with a path to nowhere. See this https://www.drupal.org/node/143322 page which has two issues for Drupal 8:1. Allow menu items without path
2. Add to allow for non-link links
First one is marked duplicate of Second and Second is fixed, so should we use
<nolink>here?Correct me if I am totally in the wrong direction.
Comment #13
shashikant_chauhan commentedComment #14
gaurav.kapoor commentedThis one should do.
Comment #15
gaurav.kapoor commentedSorry , ignore that one.
Comment #16
joachim commentedThe list itself looks good!
But this should say what this list means, as without it it's rather confusing.
Something like:
'This defines the following special routes:'
Comment #17
gaurav.kapoor commentedComment #18
mahesh.gupta commentedI am working on it
Comment #19
rahul.shindeI have added review comments for the patch posted on #2719611: Document special route names.
Please update doc comment with capital letter, like 'Functions generate(), generateFromRoute(), and getPathFromRoute() all call this protected method.'
Please replace this with 'The special string that generates a routing path.' If you think replacement makes more sense.
Remove this line, as the following line also continuity of the description of $name parameter.
Indentation, (Parameter comment indentation must be 3 spaces)
Indentation, (Parameter comment indentation must be 3 spaces)
Remove this additional blank line.
Comment #20
rahul.shindeComment #21
dhruveshdtripathi commentedComment #22
dhruveshdtripathi commentedMade changes suggested in comment #19
Comment #23
dawehnerI think one thing we should do is to focus our documentation on the bits which are actually used most of the time in the production level environment:
\Drupal\Core\Routing\UrlGeneratorInterface::generateFromRouteand\Drupal\Core\Url. Both\Drupal\Core\Url::fromRouteand\Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoutedon't document these special routes. I personally believe putting this information there would be way better.Comment #24
joachim commentedMy feeling is that documentation should be close to the code that it's documenting, so that if the special routes ever change, or are added to or removed, we notice the documentation change that would also be required.
But we could put a @see in both \Drupal\Core\Url::fromRoute and \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute that points here.
Comment #25
dawehnerI think one thing we should do is to focus our documentation on the bits which are actually used most of the time in the production level environment:
\Drupal\Core\Routing\UrlGeneratorInterface::generateFromRouteand\Drupal\Core\Url. Both\Drupal\Core\Url::fromRouteand\Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoutedon't document these special routes. I personally believe putting this information there would be way better.Comment #26
Pavan B S commentedLine exceeding 80 characters
Comment #27
Pavan B S commentedModified one line which contain more than 80 characters. Applying the patch.
Comment #28
Pavan B S commentedComment #29
dawehnerNeither of the latest comment got addressed in your latest patch. Please reach out if you need help.
Comment #30
Pavan B S commentedMade changes as per the suggestion in comment #25 , Please Review the patch and correct me if i am wrong.
Comment #31
joachim commentedThanks for updating the patch, but the problem is that that now repeats the documentation, which makes it harder to maintain.
@dawehner please could you respond to my point and suggestion in #24?
Comment #32
dawehnerThat's a tricky question ... for me having duplicate documentation is better than having people troubling with finding it in the first place.
Comment #40
ranjith_kumar_k_u commentedRe-rolled for 9.2
Comment #42
mitthukumawat commentedPatch #40 applied successfully. Adding screenshots of diff for reference. RTBC +1
Comment #43
quietone commented@mitthukumawat, thanks for the interest. Reviewing a patch will help an issue move forward. The contributor guide contains move information about contributing.
Comment #45
vikashsoni commentedApplied patch #40 in drupal-9.3.x-dev applied successfully
After patch getting expected result mention in tickets
Thanks for the patch
Comment #46
hmendes commentedThe patch looks good for me to change to RTBC, but I'm just worried about #31 and #32, should we keep the duplicated documentation?
As the $options param from the Url construct function:
Shouldn't we do the same thing for the route_name?
Something like
Comment #49
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #50
joachim commentedRerolled.
Comment #51
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #52
joachim commentedComment #53
ranjit1032002I had Reviewed the patch and it's working as expected mentioned in comment #52
Comment #54
rohan-sinha commentedgreat work joachim, patch is all working fine and thanks ranjit for reviewing, reviewing a patch will help an issue move forward. The contributor guide contains move information about contributing.
Comment #55
jungle<nolink>is a special route too, which is not documented by the patch here, is it irrelevant here?Comment #56
jungleNot a bug, could be a Minor
Comment #57
jungleApply the issue summary(IS) template only. If #55 is a thing, then needs updating IS.
Comment #58
smustgrave commented@jungle that is a valid route that can be added to the link so think it should be included as well.
Comment #59
rishabh vishwakarma commentedAddressed #58 and added to the patch
Comment #60
rishabh vishwakarma commentedFixed CCF from #59
Comment #61
nikhil_110 commentedPatch #60 is applied successfully and screenshot is also attached.
Comment #62
aziza_a commentedChecked the patch given in #60 works properly
Comment #63
longwaveThis needs wrapping at 80 characters.
This @see is not valid; it can't be part of @param and the .php extension shouldn't be added to the class name. Not even sure we need an @see here?
Comment #64
ranjit1032002Attaching patch and interdiff for the issue mentioned in comment #63
Comment #65
smustgrave commentedBuild failure in #64
Comment #66
rohan-sinha commentedremoving errors from patch #64
Comment #67
_pratik_Please try this patch for 10.1.x
Comment #68
smustgrave commentedthat visually just doesn't read right.
Comment #69
rohan-sinha commentedModified the patch as requested.
Comment #70
rohan-sinha commentedAdding again with modification of #69.
Comment #72
roshni27 commentedsame patch for 11.x.
Comment #74
roshni27 commentedPatch #70 has successfully passed the test in version 11.x, hence it should be moved to the "needs review"
Comment #75
joachim commentedComment #76
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #79
shweta__sharma commentedComment #80
smustgrave commentedSo #72 was not needed as #70 still applies cleanly to 11.x, same for the MR Ticket could of been put back into RTBC
Comment #81
longwaveThe second/third lines of the bullet point need to be indented another two characters. Also this can be wrapped more closely to 80 characters.
Same for the other instances of this.
Comment #83
akhil babuUpdated as per #81
Comment #84
smustgrave commented#81 indentation has been addressed.
Comment #85
longwaveStill not sure this is quite right, added some more suggestions.