DmitryDulepov\Realurl\Configuration\ConfigurationReader::setRootPageIdFromDomainRecord PHP Method

setRootPageIdFromDomainRecord() protected method

Sets the root page id from domain records.
    protected function setRootPageIdFromDomainRecord()
    {
        $result = FALSE;
        // TODO Consider using PageRepository::getDomainStartPage()
        $domainRecord = BackendUtility::getDomainStartPage($this->utility->getCurrentHost());
        if (is_array($domainRecord)) {
            $this->configuration['pagePath']['rootpage_id'] = (int) $domainRecord['pid'];
            $result = TRUE;
        }
        return $result;
    }