diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php index 29be307..51bfeb0 100644 --- a/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -126,7 +126,7 @@ public function getRouteOptions() { /** * Generates the path for this Url object. */ - public function getPath() { + public function toString() { $this->urlGenerator->generateFromRoute($this->routeName, $this->routeParameters, $this->routeOptions); }