X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fserialization%2Fsrc%2FNormalizer%2FEntityNormalizer.php;fp=web%2Fcore%2Fmodules%2Fserialization%2Fsrc%2FNormalizer%2FEntityNormalizer.php;h=ef746a58998765afdda8419d92d8bbc76d5f5809;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=4103d1dd7a5038fccc119fd7b644c28e5318e761;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;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')) {