public function View::disable

Implements Drupal\views\ViewStorageInterface::disable().

Overrides ViewStorageInterface::disable

File

drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php, line 182
Definition of Drupal\views\Plugin\Core\Entity\View.

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Plugin\Core\Entity

Code

public function disable() {
  $this->disabled = TRUE;
  $this
    ->save();
}