public function ViewExecutableFactoryWrapper::get in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper::get()
- 8 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper::get()
- 8.2 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper::get()
Instantiates a ViewExecutable class.
Parameters
\Drupal\views\ViewEntityInterface $view: A view entity instance.
Return value
\Drupal\views\ViewExecutable A ViewExecutable instance.
Overrides ViewExecutableFactory::get
File
- webprofiler/
src/ Views/ ViewExecutableFactoryWrapper.php, line 33
Class
- ViewExecutableFactoryWrapper
- Class ViewExecutableFactoryWrapper.
Namespace
Drupal\webprofiler\ViewsCode
public function get(ViewEntityInterface $view) {
$view_executable = new TraceableViewExecutable($view, $this->user, $this->viewsData, $this->routeProvider);
$view_executable
->setRequest($this->requestStack
->getCurrentRequest());
$this->views[] = $view_executable;
return $view_executable;
}