protected function getDomainListOfAllSites()
    {
        $sites = $this->getAvailableSites();
        $domains = [];
        foreach ($sites as $site) {
            $domains[] = $site->getDomain();
        }

        $allowedSites = implode(',', $domains);
        return $allowedSites;
    }
protected function getDomainListOfAllSites()
    {
        $sites = $this->getAvailableSites();
        $domains = [];
        foreach ($sites as $site) {
            $domains[] = $site->getDomain();
        }

        $allowedSites = implode(',', $domains);
        return $allowedSites;
    }
protected function getDomainListOfAllSites ( ) { $ sites = $ this -> getAvailableSites ( ) ; $ domains = [ ] ; foreach ( $ sites as $ site ) { $ domains [ ] = $ site -> getDomain ( ) ; } $ allowedSites = implode ( ',' , $ domains ) ; return $ allowedSites ; }
Returns a comma separated list of all domains from all sites.

@return string
Returns a comma separated list of all domains from all sites .