From 49aeced8e3822311fdaac4b1fb991236e5978651 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 3 Nov 2015 11:57:30 +0000 Subject: [PATCH] Issue #2605546 by dawehner: Mark \Drupal::url() as deprecated --- core/lib/Drupal.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php index d7cc9ff285..a4ef20b26e 100644 --- a/core/lib/Drupal.php +++ b/core/lib/Drupal.php @@ -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); -- GitLab