Neos.Neos/Classes/Domain/Service/ContentContextFactory.php
protected function setDefaultSiteAndDomainFromCurrentRequest(array $defaultContextProperties)
    {
        $currentDomain = $this->domainRepository->findOneByActiveRequest();
        if ($currentDomain !== null) {
            $defaultContextProperties['currentSite'] = $currentDomain->getSite();
            $defaultContextProperties['currentDomain'] = $currentDomain;
        } else {
            $defaultContextProperties['currentSite'] = $this->siteRepository->findDefault();
        }

        return $defaultContextProperties;
    }
protected function setDefaultSiteAndDomainFromCurrentRequest(array $defaultContextProperties)
    {
        $currentDomain = $this->domainRepository->findOneByActiveRequest();
        if ($currentDomain !== null) {
            $defaultContextProperties['currentSite'] = $currentDomain->getSite();
            $defaultContextProperties['currentDomain'] = $currentDomain;
        } else {
            $defaultContextProperties['currentSite'] = $this->siteRepository->findDefault();
        }

        return $defaultContextProperties;
    }
protected function setDefaultSiteAndDomainFromCurrentRequest ( array $ defaultContextProperties ) { $ currentDomain = $ this -> domainRepository -> findOneByActiveRequest ( ) ; if ( $ currentDomain !== null ) { $ defaultContextProperties [ 'currentSite' ] = $ currentDomain -> getSite ( ) ; $ defaultContextProperties [ 'currentDomain' ] = $ currentDomain ; } else { $ defaultContextProperties [ 'currentSite' ] = $ this -> siteRepository -> findDefault ( ) ; } return $ defaultContextProperties ; }
Determines the current domain and site from the request and sets the resulting values as
as defaults.

@param array $defaultContextProperties
@return array
Determines the current domain and site from the request and sets the resulting values as as defaults .