diff core/modules/rest/src/Plugin/Deriver/EntityDeriver.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php	Mon Apr 23 09:46:53 2018 +0100
@@ -65,6 +65,10 @@
     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,