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_ui/lib/Drupal/views_ui/ViewUI.php, line 146
Definition of Drupal\views_ui\ViewUI.

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function __construct(ViewStorageInterface $storage, ViewExecutable $executable = NULL) {
  $this->entityType = 'view';
  $this->storage = $storage;
  if (!isset($executable)) {
    $executable = Views::executableFactory()
      ->get($this);
  }
  $this->executable = $executable;
}