function ViewExecutableFactory::get

Same name in other branches
  1. 9 core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::get()
  2. 8.9.x core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::get()
  3. 11.x core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::get()

Instantiates a ViewExecutable class.

Parameters

\Drupal\views\ViewEntityInterface $view: A view entity instance.

Return value

\Drupal\views\ViewExecutable A ViewExecutable instance.

File

core/modules/views/src/ViewExecutableFactory.php, line 77

Class

ViewExecutableFactory
Defines the cache backend factory.

Namespace

Drupal\views

Code

public function get(ViewEntityInterface $view) {
    $view_executable = new ViewExecutable($view, $this->user, $this->viewsData, $this->routeProvider, $this->displayPluginManager);
    $view_executable->setRequest($this->requestStack
        ->getCurrentRequest());
    return $view_executable;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.