function 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'] = [];
}