You are here

public function ExtensionDataCollector::getThemesCount in Devel 4.x

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

Returns the total number of active themes.

Return value

int

File

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

Class

ExtensionDataCollector
Defines a data collector for the extension system.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getThemesCount() {
  return count($this->data['drupal_extension']['themes']);
}