diff --git a/core/modules/rest/src/RequestHandler.php b/core/modules/rest/src/RequestHandler.php index e205669..ff094eb 100644 --- a/core/modules/rest/src/RequestHandler.php +++ b/core/modules/rest/src/RequestHandler.php @@ -42,7 +42,7 @@ public function handle(RouteMatchInterface $route_match, Request $request) { $resource = $this->container ->get('plugin.manager.rest') - ->getInstance(array('id' => $plugin)); + ->createInstance($plugin); // Deserialize incoming data if available. $serializer = $this->container->get('serializer');