API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Menu%21Lo...
Two problems:
1. 'for the current route' means 'the route the user is on right now'. But this method has a $route_name parameter which is surely not needed if it's for the current route. The description is wrong.
2. This should say something more precise than 'Collects'. In particular, we should differentiate this from LocalTaskManager::getLocalTasksForRoute(), which loads plugin definitions, while this method gets render arrays. So 'Renders local tasks' would be clearer.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2876428-6-docs-unclear.patch | 686 bytes | hardikpandya |
#3 | 2876428-3-make-docs-clear.patch | 685 bytes | hardikpandya |
Comments
Comment #2
c.nish2k3 CreditAttribution: c.nish2k3 as a volunteer commented"Renders local tasks for the route name" - Will this be more appropriate?
Comment #3
hardikpandya CreditAttribution: hardikpandya as a volunteer commentedApplied Patch.
Comment #4
hardikpandya CreditAttribution: hardikpandya as a volunteer commentedNeeds Review.
Comment #5
joachim CreditAttribution: joachim as a volunteer commentedI'd say 'for the given route', rather than 'route name'. We're rendering tasks for the route; the route name is just how it's identified.
Sorry, meant to reply to this before a patch had been made!
Comment #6
hardikpandya CreditAttribution: hardikpandya as a volunteer commentedAdding patch as suggested.
Comment #7
c.nish2k3 CreditAttribution: c.nish2k3 as a volunteer commentedThanks for patch. Looks good.
Comment #8
Gábor HojtsyComment #11
Gábor HojtsyThanks, this was not just unclear, but it was incorrect. Thanks for the fix!