From aae02bde0267a9eb60f9d653ce29751b3043eee9 Mon Sep 17 00:00:00 2001
From: damiankloip <damian@damoweb.co.uk>
Date: Sun, 26 Aug 2012 21:58:45 +0200
Subject: [PATCH] Removed reference in entity paramter in attachDisplays()

---
 lib/Drupal/views/ViewStorageController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Drupal/views/ViewStorageController.php b/lib/Drupal/views/ViewStorageController.php
index 9f5249615a18..aaa813c5b9fa 100644
--- a/lib/Drupal/views/ViewStorageController.php
+++ b/lib/Drupal/views/ViewStorageController.php
@@ -108,7 +108,7 @@ public function create(array $values) {
    *
    * @param Drupal\entity\StorableInterface $entity
    */
-  protected function attachDisplays(&$entity) {
+  protected function attachDisplays($entity) {
     if (isset($entity->display) && is_array($entity->display)) {
       $displays = array();
       foreach ($entity->get('display') as $key => $options) {
-- 
GitLab