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.
Method call is provided 2 parameters, but the method signature uses 1 parameters
AccessManager.php
$route = $this->routeProvider->getRouteByName($route_name, $parameters);
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff-3102980-4-6.txt | 833 bytes | Nathaniel |
#6 | accessmanager_getroutebyname-3102980-6.patch | 2.39 KB | Nathaniel |
Comments
Comment #2
Nathaniel CreditAttribution: Nathaniel commentedComment #4
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedKindly review a new patch
Comment #6
Nathaniel CreditAttribution: Nathaniel commentedComment #7
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedThank you @Nathaniel. Above patch works fine.
Comment #8
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #11
catchThe documentation is actually wrong for that method, opened #3110104: Incorrect documentation for RouteProvider::getRouteByName().
Committed a7f702a and pushed to 9.0.x and 8.9.x. Thanks!