public function ExtensionDataCollector::__construct in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/DataCollector/ExtensionDataCollector.php \Drupal\webprofiler\DataCollector\ExtensionDataCollector::__construct()
- 8.2 webprofiler/src/DataCollector/ExtensionDataCollector.php \Drupal\webprofiler\DataCollector\ExtensionDataCollector::__construct()
- 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\DataCollectorCode
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'] = [];
}