You are here

public function ServicesDataCollector::getInitializedServices in Devel 4.x

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

Return value

array

2 calls to ServicesDataCollector::getInitializedServices()
ServicesDataCollector::getInitializedServicesCount in webprofiler/src/DataCollector/ServicesDataCollector.php
ServicesDataCollector::getInitializedServicesWithoutWebprofiler in webprofiler/src/DataCollector/ServicesDataCollector.php

File

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

Class

ServicesDataCollector
Class ServicesDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getInitializedServices() {
  return array_filter($this
    ->getServices(), function ($item) {
    return $item['initialized'];
  });
}