From 6217ee08226b6d248d3ed35f9d124d5e27b6cfeb Mon Sep 17 00:00:00 2001
From: Matthew Grasmick <matthew.grasmick@acquia.com>
Date: Mon, 14 Sep 2015 14:49:27 -0400
Subject: [PATCH] #2568413: Pass views config options to Rest Export
 serializer.

---
 core/modules/rest/src/Plugin/views/style/Serializer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/rest/src/Plugin/views/style/Serializer.php b/core/modules/rest/src/Plugin/views/style/Serializer.php
index f83d57f..05b88c6 100644
--- a/core/modules/rest/src/Plugin/views/style/Serializer.php
+++ b/core/modules/rest/src/Plugin/views/style/Serializer.php
@@ -136,7 +136,7 @@ public function render() {
     else {
       $content_type = !empty($this->options['formats']) ? reset($this->options['formats']) : 'json';
     }
-    return $this->serializer->serialize($rows, $content_type);
+    return $this->serializer->serialize($rows, $content_type, $this->options);
   }
 
   /**
-- 
2.2.1

