protected function overrideApplies($view_path, Route
$view_route, Route
$route) { return (!
$route->
hasRequirement('_format'
) ||
$route->
getRequirement('_format'
) === 'html'
) &&
$this->
overrideAppliesPathAndMethod($view_path,
$view_route,
$route);
} /**
* Determines whether an override for the path and method should happen.
*
* @param string $view_path
* The path of the view.
* @param \Symfony\Component\Routing\Route $view_route
* The route of the view.
* @param \Symfony\Component\Routing\Route $route
* The route itself.
*
* @return bool
* TRUE, when the view should override the given route.
*/