X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Frest%2Fsrc%2FPlugin%2FDeriver%2FEntityDeriver.php;fp=web%2Fcore%2Fmodules%2Frest%2Fsrc%2FPlugin%2FDeriver%2FEntityDeriver.php;h=e631f5da3ee4e50265dc74180a9799b753720202;hp=a74e8b2a61f650a2d83acdab52f213b7fc8b28a0;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php b/web/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php index a74e8b2a6..e631f5da3 100644 --- a/web/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php +++ b/web/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php @@ -65,6 +65,10 @@ class EntityDeriver implements ContainerDeriverInterface { if (!isset($this->derivatives)) { // Add in the default plugin configuration and the resource type. foreach ($this->entityManager->getDefinitions() as $entity_type_id => $entity_type) { + if ($entity_type->isInternal()) { + continue; + } + $this->derivatives[$entity_type_id] = [ 'id' => 'entity:' . $entity_type_id, 'entity_type' => $entity_type_id,