diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php index f9ec78b..00bb0b0 100644 --- a/core/lib/Drupal/Core/Entity/EntityManager.php +++ b/core/lib/Drupal/Core/Entity/EntityManager.php @@ -349,7 +349,7 @@ protected function buildBaseFieldDefinitions($entity_type_id) { $class = $entity_type->getClass(); // Fail with an exception for config entity types. - if (!in_array('Drupal\Core\TypedData\ComplexDataInterface', class_implements($class))) { + if (!$entity_type->isSubclassOf('\Drupal\Core\Entity\ContentEntityInterface')) { throw new \LogicException(String::format('Getting the base fields is not supported for entity type @type.', array('@type' => $entity_type->getLabel()))); }