Skip to content
Snippets Groups Projects
Commit 49aeced8 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2605546 by dawehner: Mark \Drupal::url() as deprecated

parent d4677288
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -518,6 +518,10 @@ public static function urlGenerator() {
* @see \Drupal\Core\Url
* @see \Drupal\Core\Url::fromRoute()
* @see \Drupal\Core\Url::fromUri()
*
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
* Instead create a \Drupal\Core\Url object directly, for example using
* Url::fromRoute().
*/
public static function url($route_name, $route_parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE) {
return static::getContainer()->get('url_generator')->generateFromRoute($route_name, $route_parameters, $options, $collect_bubbleable_metadata);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment