You are here

public function ViewsDataCollector::__construct in Devel 8.2

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. 4.x webprofiler/src/DataCollector/ViewsDataCollector.php \Drupal\webprofiler\DataCollector\ViewsDataCollector::__construct()

Parameters

ViewExecutableFactoryWrapper $view_executable_factory:

\Drupal\Core\Entity\EntityManagerInterface $entityManager:

File

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

Class

ViewsDataCollector
Collects data about rendered views.

Namespace

Drupal\webprofiler\DataCollector

Code

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