X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fserialization%2Fsrc%2FNormalizer%2FEntityNormalizer.php;h=ef746a58998765afdda8419d92d8bbc76d5f5809;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=4103d1dd7a5038fccc119fd7b644c28e5318e761;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/serialization/src/Normalizer/EntityNormalizer.php b/web/core/modules/serialization/src/Normalizer/EntityNormalizer.php index 4103d1dd7..ef746a589 100644 --- a/web/core/modules/serialization/src/Normalizer/EntityNormalizer.php +++ b/web/core/modules/serialization/src/Normalizer/EntityNormalizer.php @@ -40,7 +40,7 @@ class EntityNormalizer extends ComplexDataNormalizer implements DenormalizerInte // The bundle property will be required to denormalize a bundleable // fieldable entity. - if ($entity_type_definition->isSubclassOf(FieldableEntityInterface::class)) { + if ($entity_type_definition->entityClassImplements(FieldableEntityInterface::class)) { // Extract bundle data to pass into entity creation if the entity type uses // bundles. if ($entity_type_definition->hasKey('bundle')) {