You are here

public function ViewExecutable::__construct in Views (for Drupal 7) 8.3

Constructs a new ViewExecutable object.

Parameters

Drupal\views\ViewStorage $storage: The view config entity the actual information is stored on.

File

lib/Drupal/views/ViewExecutable.php, line 405
Definition of Drupal\views\ViewExecutable.

Class

ViewExecutable
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Namespace

Drupal\views

Code

public function __construct(ViewStorage $storage) {

  // Reference the storage and the executable to each other.
  $this->storage = $storage;
  $this->storage
    ->setExecutable($this);
}