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.
By dawehner on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
Issue links:
Description:
If you have calls in your codebase doing Url::toString(TRUE)
they are quite unreadable.
As of #2735575: Make Url::toString(TRUE) explicit by having a Url::generate() method, as well as having GeneratedUrl::toString you can now also use Url::generate()
which makes your code way better to read.
Impacts:
Module developers