private function getExtensionsInfo(array $projects) {
    $value = [];
    uasort($projects, 'system_sort_modules_by_info_name');
    /** @var \Drupal\Core\Extension\Extension $project */
    foreach ($projects as $project) {
      $name = $project->getName();
      $info = $project->info;
      unset($info['dependencies']);
      $value[$name] = [
        'type' => $project->getType(),
        'name' => $name,
        'status' => $project->status,
        'origin' => $project->origin,
        'info' => $info,
      ];
    }
    return $value;
  }
private function getExtensionsInfo(array $projects) {
    $value = [];
    uasort($projects, 'system_sort_modules_by_info_name');
    /** @var \Drupal\Core\Extension\Extension $project */
    foreach ($projects as $project) {
      $name = $project->getName();
      $info = $project->info;
      unset($info['dependencies']);
      $value[$name] = [
        'type' => $project->getType(),
        'name' => $name,
        'status' => $project->status,
        'origin' => $project->origin,
        'info' => $info,
      ];
    }
    return $value;
  }
private function getExtensionsInfo ( array $ projects ) { $ value = [ ] ; uasort ( $ projects , 'system_sort_modules_by_info_name' ) ; /** @var \Drupal\Core\Extension\Extension $project */ foreach ( $ projects as $ project ) { $ name = $ project -> getName ( ) ; $ info = $ project -> info ; unset ( $ info [ 'dependencies' ] ) ; $ value [ $ name ] = [ 'type' => $ project -> getType ( ) , 'name' => $ name , 'status' => $ project -> status , 'origin' => $ project -> origin , 'info' => $ info , ] ; } return $ value ; }
Get safe extensions info.

@param \Drupal\Core\Extension\Extension[] $projects
An array of extensions.

@return array
Returns an array of projects with safe values.
Get safe extensions info .