diff --git a/core/modules/rest/src/RequestHandler.php b/core/modules/rest/src/RequestHandler.php index 2f51703..e2acbd0 100644 --- a/core/modules/rest/src/RequestHandler.php +++ b/core/modules/rest/src/RequestHandler.php @@ -44,7 +44,7 @@ public function __construct(EntityStorageInterface $entity_storage) { * {@inheritdoc} */ public static function create(ContainerInterface $container) { - return new static($container->get('entity_type.manager')->get('rest_resource_config')); + return new static($container->get('entity_type.manager')->getStorage('rest_resource_config')); } /**