You are here

public function ViewExecutableFactoryWrapper::get in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper::get()
  2. 8 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper::get()
  3. 4.x 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\Views

Code

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;
}