Commit b260fc13 authored by damiankloip's avatar damiankloip Committed by tim.plunkett

Implement ViewStorageInterface on ViewStorage

parent 151d7b25
......@@ -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.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment