You are here

public function ExtensionDataCollector::getExtensionsCount in Devel 8.2

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

Returns the total number of active extensions.

Return value

int

1 call to ExtensionDataCollector::getExtensionsCount()
ExtensionDataCollector::getPanelSummary in webprofiler/src/DataCollector/ExtensionDataCollector.php
Returns the string used in vertical tab summary.

File

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

Class

ExtensionDataCollector
Defines a data collector for the extension system.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getExtensionsCount() {
  return isset($this->data['drupal_extension']['count']) ? $this->data['drupal_extension']['count'] : 0;
}