From b260fc135a75c25004f4c0ad66d2912afd37e2ef Mon Sep 17 00:00:00 2001
From: damiankloip <damian@damoweb.co.uk>
Date: Mon, 27 Aug 2012 15:03:17 +0200
Subject: [PATCH] Implement ViewStorageInterface on ViewStorage

---
 lib/Drupal/views/ViewStorage.php | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/lib/Drupal/views/ViewStorage.php b/lib/Drupal/views/ViewStorage.php
index a2ca757330de..bb99de23c3d0 100644
--- a/lib/Drupal/views/ViewStorage.php
+++ b/lib/Drupal/views/ViewStorage.php
@@ -9,7 +9,7 @@
 
 use Drupal\config\ConfigurableBase;
 
-class ViewStorage extends ConfigurableBase {
+class ViewStorage extends ConfigurableBase implements ViewStorageInterface {
 
   public function __construct(array $values, $entity_type) {
     parent::__construct($values, 'view');
@@ -22,6 +22,27 @@ public function id() {
     return $this->name;
   }
 
+  /**
+   * Implements Drupal\views\ViewStorageInterface::enable().
+   */
+  public function enable() {
+    $this->disabled = FALSE;
+  }
+
+  /**
+   * Implements Drupal\views\ViewStorageInterface::disable().
+   */
+  public function disable() {
+    $this->disabled = TRUE;
+  }
+
+  /**
+   * Implements Drupal\views\ViewStorageInterface::isEnabled().
+   */
+  public function isEnabled() {
+    return !$this->disabled;
+  }
+
   /**
    * Add a new display handler to the view, automatically creating an id.
    *
-- 
GitLab