You are here

public function ExtensionDataCollector::getData in Devel 8.2

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

Return value

mixed

Overrides DrupalDataCollectorInterface::getData

File

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

Class

ExtensionDataCollector
Defines a data collector for the extension system.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getData() {
  $data = $this->data;

  // Copy protected properties over public ones to
  // let json_encode to find them.
  $this
    ->copyToPublic($data['drupal_extension']['modules']);
  $this
    ->copyToPublic($data['drupal_extension']['themes']);
  return $data;
}