Task/Collect/ServicesCollector.php
public function collect($job_list) {
    $all_services = $this->getAllServices();
    $static_container_services = $this->getStaticContainerServices();

    // Filter out anything from the static inspection, to remove deprecated
    // services, and also in case some non-services snuck in.
    $static_container_services = array_intersect_key($static_container_services, $all_services);

    // Replace the definitions from the container with the hopefully better
    // data from the static Drupal class.
    $all_services = array_merge($all_services, $static_container_services);

    // Filter for testing sample data collection.
    if (!empty($this->environment->sample_data_write)) {
      $static_container_services = array_intersect_key($static_container_services, $this->testingServiceNames);
      $all_services = array_intersect_key($all_services, $this->testingServiceNames);
    }

    $return = [
      'primary' => $static_container_services,
      'all' => $all_services,
    ];

    return $return;
  }
public function collect($job_list) {
    $all_services = $this->getAllServices();
    $static_container_services = $this->getStaticContainerServices();

    // Filter out anything from the static inspection, to remove deprecated
    // services, and also in case some non-services snuck in.
    $static_container_services = array_intersect_key($static_container_services, $all_services);

    // Replace the definitions from the container with the hopefully better
    // data from the static Drupal class.
    $all_services = array_merge($all_services, $static_container_services);

    // Filter for testing sample data collection.
    if (!empty($this->environment->sample_data_write)) {
      $static_container_services = array_intersect_key($static_container_services, $this->testingServiceNames);
      $all_services = array_intersect_key($all_services, $this->testingServiceNames);
    }

    $return = [
      'primary' => $static_container_services,
      'all' => $all_services,
    ];

    return $return;
  }
public function collect ( $ job_list ) { $ all_services = $ this -> getAllServices ( ) ; $ static_container_services = $ this -> getStaticContainerServices ( ) ; // Filter out anything from the static inspection, to remove deprecated // services, and also in case some non-services snuck in. $ static_container_services = array_intersect_key ( $ static_container_services , $ all_services ) ; // Replace the definitions from the container with the hopefully better // data from the static Drupal class. $ all_services = array_merge ( $ all_services , $ static_container_services ) ; // Filter for testing sample data collection. if ( ! empty ( $ this -> environment -> sample_data_write ) ) { $ static_container_services = array_intersect_key ( $ static_container_services , $ this -> testingServiceNames ) ; $ all_services = array_intersect_key ( $ all_services , $ this -> testingServiceNames ) ; } $ return = [ 'primary' => $ static_container_services , 'all' => $ all_services , ] ; return $ return ; }
Get definitions of services.

@return array
An array containing:
- 'primary': The major services in use.
- 'all': All services.
Each value is itself an array of service data, keyed by service ID, where
each value is an array containing:
- 'id': The service ID.
- 'label': A label for the service.
- 'description': A longer description for the service.
- 'class': The fully-qualified class that is defined for the service.
- 'interface': The fully-qualified interface that the service class
implements, with the initial '\'.
Get definitions of services .