function ExtensionDataCollector::collect
File
-
webprofiler/
src/ DataCollector/ ExtensionDataCollector.php, line 61
Class
- ExtensionDataCollector
- Defines a data collector for the extension system.
Namespace
Drupal\webprofiler\DataCollectorCode
public function collect(Request $request, Response $response, \Exception $exception = NULL) {
$modules = $this->moduleHandler
->getModuleList();
$themes = $this->themeHandler
->listInfo();
$this->data['drupal_extension']['count'] = count($modules) + count($themes);
$this->data['drupal_extension']['modules'] = $modules;
$this->data['drupal_extension']['themes'] = $themes;
$this->data['drupal_extension']['installation_path'] = $this->root . '/';
}