Unverified Commit 68f2ce3c authored by larowlan's avatar larowlan
Browse files

Issue #3248649 by alexpott:...

Issue #3248649 by alexpott: \Drupal\views\Plugin\views\display\PathPluginBase::alterRoutes() can become very slow on a site with lots of entities and JsonAPI

(cherry picked from commit 1e05f804)
parent 4ddfac11
......@@ -245,8 +245,8 @@ public function collectRoutes(RouteCollection $collection) {
* TRUE, when the view should override the given route.
protected function overrideApplies($view_path, Route $view_route, Route $route) {
return $this->overrideAppliesPathAndMethod($view_path, $view_route, $route)
&& (!$route->hasRequirement('_format') || $route->getRequirement('_format') === 'html');
return (!$route->hasRequirement('_format') || $route->getRequirement('_format') === 'html')
&& $this->overrideAppliesPathAndMethod($view_path, $view_route, $route);
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