Helper/SiteAccess.php
public function getRootLocationsBySiteAccesses(array $siteAccesses)
    {
        $rootLocations = [];

        foreach ($siteAccesses as $siteAccess) {
            $rootLocationId = $this->getRootLocationBySiteAccessName($siteAccess);

            $rootLocations[$rootLocationId] = $rootLocationId;
        }

        return array_keys($rootLocations);
    }
public function getRootLocationsBySiteAccesses(array $siteAccesses)
    {
        $rootLocations = [];

        foreach ($siteAccesses as $siteAccess) {
            $rootLocationId = $this->getRootLocationBySiteAccessName($siteAccess);

            $rootLocations[$rootLocationId] = $rootLocationId;
        }

        return array_keys($rootLocations);
    }
public function getRootLocationsBySiteAccesses ( array $ siteAccesses ) { $ rootLocations = [ ] ; foreach ( $ siteAccesses as $ siteAccess ) { $ rootLocationId = $ this -> getRootLocationBySiteAccessName ( $ siteAccess ) ; $ rootLocations [ $ rootLocationId ] = $ rootLocationId ; } return array_keys ( $ rootLocations ) ; }
Returns list of rootLocations from siteAccess list.

@param array $siteAccesses

@return array
Returns list of rootLocations from siteAccess list .