protected setRootPageIdFromDomainRecord ( ) : boolean | ||
return | boolean |
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;
}