You are here

public function ViewsDataCollector::__construct in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/ViewsDataCollector.php \Drupal\webprofiler\DataCollector\ViewsDataCollector::__construct()
  2. 8 webprofiler/src/DataCollector/ViewsDataCollector.php \Drupal\webprofiler\DataCollector\ViewsDataCollector::__construct()
  3. 8.2 webprofiler/src/DataCollector/ViewsDataCollector.php \Drupal\webprofiler\DataCollector\ViewsDataCollector::__construct()

Parameters

\Drupal\webprofiler\Views\ViewExecutableFactoryWrapper $view_executable_factory:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

File

webprofiler/src/DataCollector/ViewsDataCollector.php, line 34

Class

ViewsDataCollector
Collects data about rendered views.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(ViewExecutableFactoryWrapper $view_executable_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->view_executable_factory = $view_executable_factory;
  $this->data['views'] = [];
}