diff --git a/core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php b/core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php
index a6ed3bd..8da6b39 100644
--- a/core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php
+++ b/core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php
@@ -62,7 +62,7 @@ protected function getUrlGenerator() {
    * @return $this
    */
   public function setUrlGenerator(UrlGeneratorInterface $generator) {
-    $this->linkGenerator = $generator;
+    $this->urlGenerator = $generator;
 
     return $this;
   }
