diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/Derivative/EntityDerivative.php b/core/modules/rest/lib/Drupal/rest/Plugin/Derivative/EntityDerivative.php index c34f4e7..8b31ed2 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/Derivative/EntityDerivative.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/Derivative/EntityDerivative.php @@ -97,6 +97,8 @@ public function getDerivativeDefinitions($base_plugin_definition) { // Check if there are link templates defined for the entity type and // 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 try { $route = $this->routeProvider->getRouteByName($route_name); $this->derivatives[$entity_type_id]['uri_paths'][$link_relation] = $route->getPath();