You are here

public function ExtensionDataCollector::__construct in Devel 8

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

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

string $root: The app root.

File

webprofiler/src/DataCollector/ExtensionDataCollector.php, line 49

Class

ExtensionDataCollector
Defines a data collector for the extension system.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, $root) {
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->root = $root;
  $this->data['drupal_extension']['modules'] = [];
  $this->data['drupal_extension']['themes'] = [];
}