Commit a5c9c32f authored by catch's avatar catch

Issue #3172846 by shetpooja04, Pooja Ganjage, naresh_bavaskar, chaithanya.m:...

Issue #3172846 by shetpooja04, Pooja Ganjage, naresh_bavaskar, chaithanya.m: Unused variable $supported_formats in ResourceRoutes.php, rest module
parent e738aa7c
......@@ -95,7 +95,7 @@ protected function getRoutesForResourceConfig(RestResourceConfigInterface $rest_
$methods = $route->getMethods();
// Only expose routes that have an explicit method and allow >=1 format
// for that method.
if (($methods && ($method = $methods[0]) && $supported_formats = $rest_resource_config->getFormats($method))) {
if (($methods && ($method = $methods[0]) && $rest_resource_config->getFormats($method))) {
$route->setRequirement('_csrf_request_header_token', 'TRUE');
// Check that authentication providers are defined.
......
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