Skip to content
Snippets Groups Projects
Commit b260fc13 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

Implement ViewStorageInterface on ViewStorage

parent 151d7b25
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment