You are here

public function ServicesDataCollector::getInitializedServicesWithoutWebprofiler in Devel 8.3

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

Return value

array

1 call to ServicesDataCollector::getInitializedServicesWithoutWebprofiler()
ServicesDataCollector::getInitializedServicesWithoutWebprofilerCount in webprofiler/src/DataCollector/ServicesDataCollector.php

File

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

Class

ServicesDataCollector
Class ServicesDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getInitializedServicesWithoutWebprofiler() {
  return array_filter($this
    ->getInitializedServices(), function ($item) {
    return strpos($item['value']['id'], 'webprofiler') !== 0;
  });
}