src/Robo/Config/DefaultConfig.php
protected function getSiteDirs() {
    $sites_dir = $this->get('docroot') . '/sites';
    $sites = [];

    // If BLT's template has not yet been rsynced into the project root, it is
    // possible that docroot/sites does not exist.
    if (!file_exists($sites_dir)) {
      return $sites;
    }

    $finder = new Finder();
    $dirs = $finder
      ->in($sites_dir)
      ->directories()
      ->depth('< 1')
      ->exclude(['g', 'settings'])
      ->sortByName();
    foreach ($dirs->getIterator() as $dir) {
      $sites[] = $dir->getRelativePathname();
    }

    return $sites;
  }
protected function getSiteDirs() {
    $sites_dir = $this->get('docroot') . '/sites';
    $sites = [];

    // If BLT's template has not yet been rsynced into the project root, it is
    // possible that docroot/sites does not exist.
    if (!file_exists($sites_dir)) {
      return $sites;
    }

    $finder = new Finder();
    $dirs = $finder
      ->in($sites_dir)
      ->directories()
      ->depth('< 1')
      ->exclude(['g', 'settings'])
      ->sortByName();
    foreach ($dirs->getIterator() as $dir) {
      $sites[] = $dir->getRelativePathname();
    }

    return $sites;
  }
protected function getSiteDirs ( ) { $ sites_dir = $ this -> get ( 'docroot' ) . '/sites' ; $ sites = [ ] ; // If BLT's template has not yet been rsynced into the project root, it is // possible that docroot/sites does not exist. if ( ! file_exists ( $ sites_dir ) ) { return $ sites ; } $ finder = new Finder ( ) ; $ dirs = $ finder -> in ( $ sites_dir ) -> directories ( ) -> depth ( '< 1' ) -> exclude ( [ 'g' , 'settings' ] ) -> sortByName ( ) ; foreach ( $ dirs -> getIterator ( ) as $ dir ) { $ sites [ ] = $ dir -> getRelativePathname ( ) ; } return $ sites ; }
Gets an array of sites for the Drupal application.

I.e., sites under docroot/sites, not including acsf 'g' pseudo-site and
'settings' directory globbed in blt.settings.php.

@return array
An array of sites.
Gets an array of sites for the Drupal application .