Commit e83b1202 authored by catch's avatar catch

Issue #2158571 by tstoeckler, dawehner, kgoel, chx, tim.plunkett, catch,...

Issue #2158571 by tstoeckler, dawehner, kgoel, chx, tim.plunkett, catch, effulgentsia: Fixed Followup: Routes added in RouteSubscribers cannot be altered.
parent afe174dc
......@@ -9,7 +9,6 @@
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 @@ public function getDerivativeDefinitions($base_plugin_definition) {
// 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)) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment