Disallow passing route objects to UrlGenerator methods

Created on 6 February 2023, almost 2 years ago
Updated 18 March 2024, 8 months ago

Problem/Motivation

Follow-up to πŸ“Œ Only allow route names, deprecate support for route objects in UrlGenerator methods Fixed

There's few deprecated methods left and it needs add native string type to $name variable

Proposed resolution

Clean-up deprecattions from:
- πŸ“Œ Deprecate UrlGenerator::supports() and UrlGenerator::getRouteDebugMessage() Fixed
- πŸ“Œ Only allow route names, deprecate support for route objects in UrlGenerator methods Fixed

Add string type to $name argument of \Drupal\Core\Routing\UrlGeneratorInterface

Remaining tasks

- wait 11.0.x is open to remove deprecations
- patch&review&commit

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
RoutingΒ  β†’

Last updated 7 days ago

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024