Problem/Motivation

Follow-up to #3151019: Only allow route names, deprecate support for route objects in UrlGenerator methods

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

Proposed resolution

Clean-up deprecattions from:
- #3151017: Deprecate UrlGenerator::supports() and UrlGenerator::getRouteDebugMessage()
- #3151019: Only allow route names, deprecate support for route objects in UrlGenerator methods

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

Comments

andypost created an issue. See original summary.

andypost’s picture

catch’s picture

Title: Disalow passing route objects to UrlGenerator methods » [11.x] Disallow passing route objects to UrlGenerator methods
Issue tags: +Major version only
catch’s picture

Version: 11.0.x-dev » 11.x-dev
andypost’s picture

Status: Postponed » Active

as 10.3 splitted

quietone’s picture

Title: [11.x] Disallow passing route objects to UrlGenerator methods » Disallow passing route objects to UrlGenerator methods
Version: 11.x-dev » 10.1.x-dev
Status: Active » Fixed
Issue tags: -Deprecation Removal, -Major version only
Related issues: +#3402452: [meta] Requirements for tagging 11.0.0-alpha1

I am moving the removal to a separate issue so the version for when this was fixed will match the most recent related commit and to parent the removal to the D11 meta issue for removals.

Cheers

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.