class ViewExecutableFactoryWrapper in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper
- 8.2 webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper
- 4.x webprofiler/src/Views/ViewExecutableFactoryWrapper.php \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper
Class ViewExecutableFactoryWrapper
Hierarchy
- class \Drupal\views\ViewExecutableFactory
- class \Drupal\webprofiler\Views\ViewExecutableFactoryWrapper
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ViewExecutableFactory:: |
protected | property | The request stack. | |
ViewExecutableFactory:: |
protected | property | The route provider. | |
ViewExecutableFactory:: |
protected | property | Stores the current user. | |
ViewExecutableFactory:: |
protected | property | The views data. | |
ViewExecutableFactoryWrapper:: |
private | property | @var ViewExecutable $view_executable | |
ViewExecutableFactoryWrapper:: |
public | function |
Instantiates a ViewExecutable class. Overrides ViewExecutableFactory:: |
|
ViewExecutableFactoryWrapper:: |
public | function | ||
ViewExecutableFactoryWrapper:: |
public | function |
Constructs a new ViewExecutableFactory Overrides ViewExecutableFactory:: |