Commit a5c9c32f authored by catch's avatar catch
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.