From 67d9c3e69ff9b1bf68352811d052ac3d25f2b990 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Mon, 9 Nov 2015 18:06:27 +0000
Subject: [PATCH] Issue #2606378 by anil280988, kaushalkishorejaiswal,
 sdstyles: mark \Drupal\Core\Routing\UrlGeneratorInterface::generate() as
 internal

---
 core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php b/core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php
index 7c33fd4b6cf4..eb77445c821b 100644
--- a/core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php
+++ b/core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php
@@ -77,6 +77,10 @@ public function getPathFromRoute($name, $parameters = array());
    * @throws \Symfony\Component\Routing\Exception\InvalidParameterException
    *   Thrown when a parameter value for a placeholder is not correct because it
    *   does not match the requirement.
+   *
+   * @internal
+   *   Should not be used in user code.
+   *   Use \Drupal\Core\Url instead.
    */
   public function generateFromRoute($name, $parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE);
 
-- 
GitLab