You are here

public function BlocksDataCollector::__construct in Devel 8

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

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityManager:

File

webprofiler/src/DataCollector/BlocksDataCollector.php, line 30

Class

BlocksDataCollector
Class BlocksDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(EntityTypeManagerInterface $entityManager) {
  $this->entityManager = $entityManager;
  $this->data['blocks']['loaded'] = [];
  $this->data['blocks']['rendered'] = [];
}