Helper/SiteAccess.php
public function getRootLocationBySiteAccessName($siteAccessName = null)
    {
        return $this->configResolver->getParameter(
            'content.tree_root.location_id',
            null,
            $siteAccessName ?: $this->siteAccess->name
        );
    }
public function getRootLocationBySiteAccessName($siteAccessName = null)
    {
        return $this->configResolver->getParameter(
            'content.tree_root.location_id',
            null,
            $siteAccessName ?: $this->siteAccess->name
        );
    }
public function getRootLocationBySiteAccessName ( $ siteAccessName = null ) { return $ this -> configResolver -> getParameter ( 'content.tree_root.location_id' , null , $ siteAccessName ? : $ this -> siteAccess -> name ) ; }
Returns rootLocation by siteAccess name or by default siteAccess.

@param string|null $siteAccessName

@return int
Returns rootLocation by siteAccess name or by default siteAccess .