public function ViewExecutableFactory::get in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 75 - Contains \Drupal\views\ViewExecutableFactory.
Class
- ViewExecutableFactory
- Defines the cache backend factory.
Namespace
Drupal\viewsCode
public function get(ViewEntityInterface $view) {
$view = new ViewExecutable($view, $this->user, $this->viewsData, $this->routeProvider);
$view
->setRequest($this->requestStack
->getCurrentRequest());
return $view;
}