class ViewExecutableFactoryWrapper
Class ViewExecutableFactoryWrapper
Hierarchy
- class \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper extends \Drupal\views\ViewExecutableFactory
Expanded class hierarchy of ViewExecutableFactoryWrapper
1 file declares its use of ViewExecutableFactoryWrapper
- ViewsDataCollector.php in webprofiler/
src/ DataCollector/ ViewsDataCollector.php
File
-
webprofiler/
src/ Views/ ViewExecutableFactoryWrapper.php, line 16
Namespace
Drupal\webprofiler\ViewsView source
class ViewExecutableFactoryWrapper extends ViewExecutableFactory {
/** @var ViewExecutable $view_executable */
private $views;
/**
* {@inheritdoc}
*/
public function __construct(AccountInterface $user, RequestStack $request_stack, ViewsData $views_data, RouteProviderInterface $route_provider) {
parent::__construct($user, $request_stack, $views_data, $route_provider);
$this->views = [];
}
/**
* {@inheritdoc}
*/
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;
}
/**
* @return TraceableViewExecutable
*/
public function getViews() {
return $this->views;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ViewExecutableFactoryWrapper::$views | private | property | @var ViewExecutable $view_executable |
ViewExecutableFactoryWrapper::get | public | function | |
ViewExecutableFactoryWrapper::getViews | public | function | |
ViewExecutableFactoryWrapper::__construct | public | function |