Contao\PageModel::getAbsoluteUrl PHP Метод

getAbsoluteUrl() публичный Метод

Generate an absolute URL depending on the current rewriteURL setting
public getAbsoluteUrl ( string $strParams = null ) : string
$strParams string An optional string of URL parameters
Результат string An absolute URL that can be used in the front end
    public function getAbsoluteUrl($strParams = null)
    {
        $this->loadDetails();
        $objUrlGenerator = \System::getContainer()->get('contao.routing.url_generator');
        $strUrl = $objUrlGenerator->generate(($this->alias ?: $this->id) . $strParams, array('_locale' => $this->rootLanguage, '_domain' => $this->domain, '_ssl' => (bool) $this->rootUseSSL), UrlGeneratorInterface::ABSOLUTE_URL);
        $strUrl = $this->applyLegacyLogic($strUrl, $strParams);
        return $strUrl;
    }