diff --git a/core/modules/rest/src/Plugin/views/display/RestExport.php b/core/modules/rest/src/Plugin/views/display/RestExport.php index 51b070b..43eb4d6 100644 --- a/core/modules/rest/src/Plugin/views/display/RestExport.php +++ b/core/modules/rest/src/Plugin/views/display/RestExport.php @@ -246,7 +246,7 @@ public function optionsSummary(&$categories, &$options) { * {@inheritdoc} */ public function collectRoutes(RouteCollection $collection) { - parent::collectRoutes($collection); + $result = parent::collectRoutes($collection); $view_id = $this->view->storage->id(); $display_id = $this->display['id']; @@ -261,6 +261,7 @@ public function collectRoutes(RouteCollection $collection) { // Add the new requirements to the route. $route->addRequirements($requirements); } + return $result; } /**