Task/Collect.php
public function collectComponentData() {
    $result = [];

    // Allow each of our declared collectors to perform its work.
    foreach ($this->collectorClassNames as $collector_class_name) {
      $collector_helper = $this->getHelper($collector_class_name);

      // Get the list of jobs.
      // (In 3.3.x, this list will be exposed to the API, so UIs can run the
      // analysis in batches.)
      $job_list = $collector_helper->getJobList();

      $collector_data = $collector_helper->collect($job_list);

      // Save the data.
      $this->environment->getStorage()->store($collector_helper->getSaveDataKey(), $collector_data);

      // Add the count to the results.
      $count = $collector_helper->getDataCount($collector_data);

      $result[$collector_helper->getReportingKey()] = $count;
    }

    return $result;
  }
public function collectComponentData() {
    $result = [];

    // Allow each of our declared collectors to perform its work.
    foreach ($this->collectorClassNames as $collector_class_name) {
      $collector_helper = $this->getHelper($collector_class_name);

      // Get the list of jobs.
      // (In 3.3.x, this list will be exposed to the API, so UIs can run the
      // analysis in batches.)
      $job_list = $collector_helper->getJobList();

      $collector_data = $collector_helper->collect($job_list);

      // Save the data.
      $this->environment->getStorage()->store($collector_helper->getSaveDataKey(), $collector_data);

      // Add the count to the results.
      $count = $collector_helper->getDataCount($collector_data);

      $result[$collector_helper->getReportingKey()] = $count;
    }

    return $result;
  }
public function collectComponentData ( ) { $ result = [ ] ; // Allow each of our declared collectors to perform its work. foreach ( $ this -> collectorClassNames as $ collector_class_name ) { $ collector_helper = $ this -> getHelper ( $ collector_class_name ) ; // Get the list of jobs. // (In 3.3.x, this list will be exposed to the API, so UIs can run the // analysis in batches.) $ job_list = $ collector_helper -> getJobList ( ) ; $ collector_data = $ collector_helper -> collect ( $ job_list ) ; // Save the data. $ this -> environment -> getStorage ( ) -> store ( $ collector_helper -> getSaveDataKey ( ) , $ collector_data ) ; // Add the count to the results. $ count = $ collector_helper -> getDataCount ( $ collector_data ) ; $ result [ $ collector_helper -> getReportingKey ( ) ] = $ count ; } return $ result ; }
Collect data about Drupal components from the current site's codebase.

@return array
An array summarizing the collected data. Each key is a label, each value
is a count of that type of item.
Collect data about Drupal components from the current site s codebase .