Classes/Service/UrlService.php
public function getDefaultUrl(): string
    {
        $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('pages');
        $firstPageInTree = $connection->select(['uid'], 'pages', ['pid' => 0], [], ['sorting' => 'ASC'], 1)->fetchColumn(0);
        $url = BackendUtility::getViewDomain($firstPageInTree);

        return $url;
    }
public function getDefaultUrl(): string
    {
        $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('pages');
        $firstPageInTree = $connection->select(['uid'], 'pages', ['pid' => 0], [], ['sorting' => 'ASC'], 1)->fetchColumn(0);
        $url = BackendUtility::getViewDomain($firstPageInTree);

        return $url;
    }
public function getDefaultUrl ( ) : string { $ connection = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getConnectionForTable ( 'pages' ) ; $ firstPageInTree = $ connection -> select ( [ 'uid' ] , 'pages' , [ 'pid' => 0 ] , [ ] , [ 'sorting' => 'ASC' ] , 1 ) -> fetchColumn ( 0 ) ; $ url = BackendUtility :: getViewDomain ( $ firstPageInTree ) ; return $ url ; }
Retrieves the first valid URL

@return string a URL like "http://example.org"
Retrieves the first valid URL