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