From e83b1202a35d7029a836c2dd404a960e82dd8d81 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 9 Oct 2014 11:05:59 +0100 Subject: [PATCH] Issue #2158571 by tstoeckler, dawehner, kgoel, chx, tim.plunkett, catch, effulgentsia: Fixed Followup: Routes added in RouteSubscribers cannot be altered. --- core/modules/rest/src/Plugin/Derivative/EntityDerivative.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/rest/src/Plugin/Derivative/EntityDerivative.php b/core/modules/rest/src/Plugin/Derivative/EntityDerivative.php index 9e7d31335c2c..f80694fd6b09 100644 --- a/core/modules/rest/src/Plugin/Derivative/EntityDerivative.php +++ b/core/modules/rest/src/Plugin/Derivative/EntityDerivative.php @@ -9,7 +9,6 @@ namespace Drupal\rest\Plugin\Derivative; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface; -use Drupal\Core\Routing\RouteBuilder; use Drupal\Core\Routing\RouteBuilderInterface; use Drupal\Core\Routing\RouteProviderInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -113,7 +112,7 @@ class EntityDerivative implements ContainerDeriverInterface { // use the path from the route instead of the default. if ($route_name = $entity_type->getLinkTemplate($link_relation)) { // @todo remove the try/catch as part of - // http://drupal.org/node/2158571 + // http://drupal.org/node/2281645 try { if (($collection = $this->routeBuilder->getCollectionDuringRebuild()) && $route = $collection->get($route_name)) { }