Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
49aeced8
Commit
49aeced8
authored
Nov 03, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2605546
by dawehner: Mark \Drupal::url() as deprecated
parent
d4677288
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
core/lib/Drupal.php
core/lib/Drupal.php
+4
-0
No files found.
core/lib/Drupal.php
View file @
49aeced8
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment