From 9c45e18e56d5e1df5ef5389a4346771b0fabe0a7 Mon Sep 17 00:00:00 2001
From: David Pascoe-Deslauriers <dpascoed@coldfrontlabs.ca>
Date: Mon, 19 Oct 2015 20:14:53 +0000
Subject: [PATCH] feat (export): cleaned-up exported wsconfig entities Now when
 wsconfig entities are exported, they won't include the wsconfig_type and
 connector which should be loaded from the wsconfig type and won't include the
 created and changed dates since those just mess with the feature status.

---
 modules/wsconfig/wsconfig.entity.inc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/wsconfig/wsconfig.entity.inc b/modules/wsconfig/wsconfig.entity.inc
index 604d436..270968b 100644
--- a/modules/wsconfig/wsconfig.entity.inc
+++ b/modules/wsconfig/wsconfig.entity.inc
@@ -281,6 +281,14 @@ class WsConfigController extends EntityAPIControllerExportable {
 
     return $content;
   }
+
+  public function export($entity, $prefix = '') {
+    unset($entity->wsconfig_type);
+    unset($entity->connector);
+    unset($entity->created);
+    unset($entity->changed);
+    return parent::export($entity, $prefix);
+  }
 }
 
 /**
-- 
GitLab