concrete/src/Page/Sitemap/SitemapGenerator.php
public function getSiteCanonicalUrl()
    {
        $site = $this->getPageListGenerator()->getSite();
        if ($site === null) {
            $result = '';
        } else {
            $result = (string) $site->getConfigRepository()->get('seo.canonical_url');
        }

        return $result;
    }
public function getSiteCanonicalUrl()
    {
        $site = $this->getPageListGenerator()->getSite();
        if ($site === null) {
            $result = '';
        } else {
            $result = (string) $site->getConfigRepository()->get('seo.canonical_url');
        }

        return $result;
    }
public function getSiteCanonicalUrl ( ) { $ site = $ this -> getPageListGenerator ( ) -> getSite ( ) ; if ( $ site === null ) { $ result = '' ; } else { $ result = ( string ) $ site -> getConfigRepository ( ) -> get ( 'seo.canonical_url' ) ; } return $ result ; }
Get the currently configured canonical URL of the site.

@return string
Get the currently configured canonical URL of the site .