function 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\DataCollector

Code

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