You are here

public function ServicesDataCollector::getServicesCount in Devel 4.x

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

Return value

int

1 call to ServicesDataCollector::getServicesCount()
ServicesDataCollector::collect in webprofiler/src/DataCollector/ServicesDataCollector.php

File

webprofiler/src/DataCollector/ServicesDataCollector.php, line 68

Class

ServicesDataCollector
Class ServicesDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getServicesCount() {
  return count($this
    ->getServices());
}