public static function getRootPageIdsFromSites(array $sites): array
    {
        $rootPageIds = [];
        foreach ($sites as $site) {
            $rootPageIds[] = (int)$site->getRootPageId();
        }

        return $rootPageIds;
    }
public static function getRootPageIdsFromSites(array $sites): array
    {
        $rootPageIds = [];
        foreach ($sites as $site) {
            $rootPageIds[] = (int)$site->getRootPageId();
        }

        return $rootPageIds;
    }
public static function getRootPageIdsFromSites ( array $ sites ) : array { $ rootPageIds = [ ] ; foreach ( $ sites as $ site ) { $ rootPageIds [ ] = ( int ) $ site -> getRootPageId ( ) ; } return $ rootPageIds ; }
Retrieves the rootPageIds as an array from a set of sites.

@param array $sites
@return array
Retrieves the rootPageIds as an array from a set of sites .