public function ViewUI::__construct

Constructs a View UI object.

Parameters

\Drupal\views\ViewStorageInterface $storage: The View storage object to wrap.

File

drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php, line 122
Definition of Drupal\views_ui\ViewUI.

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function __construct(ViewStorageInterface $storage) {
  $this->entityType = 'view';
  $this->storage = $storage;
  $this->executable = $storage
    ->get('executable');
}