From 2386bcf298c73d91c4a6fb6573efd57b6e690b72 Mon Sep 17 00:00:00 2001 From: divya-intelli Date: Tue, 30 Aug 2022 13:40:42 +0530 Subject: [PATCH] Fix for deprecation:Accessing the entityClass property directly is deprecated --- src/Entity/Storage/EdgeEntityStorageBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Storage/EdgeEntityStorageBase.php b/src/Entity/Storage/EdgeEntityStorageBase.php index 4a16eb615..0fe6193e8 100644 --- a/src/Entity/Storage/EdgeEntityStorageBase.php +++ b/src/Entity/Storage/EdgeEntityStorageBase.php @@ -231,7 +231,7 @@ protected function withController(callable $action) { * The Drupal entity that decorates the SDK entity. */ protected function createNewInstance(SdkEntityInterface $sdk_entity): DrupalEdgeEntityInterface { - $rc = new \ReflectionClass($this->entityClass); + $rc = new \ReflectionClass($this->getEntityClass()); $rm = $rc->getMethod('createFrom'); return $rm->invoke(NULL, $sdk_entity); }