public function ExtensionDataCollector::getModulesCount in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/DataCollector/ExtensionDataCollector.php \Drupal\webprofiler\DataCollector\ExtensionDataCollector::getModulesCount()
- 8.2 webprofiler/src/DataCollector/ExtensionDataCollector.php \Drupal\webprofiler\DataCollector\ExtensionDataCollector::getModulesCount()
- 4.x webprofiler/src/DataCollector/ExtensionDataCollector.php \Drupal\webprofiler\DataCollector\ExtensionDataCollector::getModulesCount()
Returns the total number of active modules.
Return value
int
File
- webprofiler/
src/ DataCollector/ ExtensionDataCollector.php, line 85
Class
- ExtensionDataCollector
- Defines a data collector for the extension system.
Namespace
Drupal\webprofiler\DataCollectorCode
public function getModulesCount() {
return count($this->data['drupal_extension']['modules']);
}