Classes/Page/Part/MetatagPart.php
protected function generateLink($url, array $conf = null, $disableMP = false)
    {
        if ($conf === null) {
            $conf = array();
        }

        $mpOldConfValue = $GLOBALS['TSFE']->config['config']['MP_disableTypolinkClosestMPvalue'];
        if ($disableMP === true) {
            // Disable MP usage in typolink - link to the real page instead
            $GLOBALS['TSFE']->config['config']['MP_disableTypolinkClosestMPvalue'] = 1;
        }

        $conf['parameter'] = $url;

        $ret = $this->cObj->typoLink_URL($conf);
        // maybe baseUrlWrap is better? but breaks with realurl currently?
        $ret = GeneralUtility::fullUrl($ret);

        if ($disableMP === true) {
            // Restore old MP linking configuration
            $GLOBALS['TSFE']->config['config']['MP_disableTypolinkClosestMPvalue'] = $mpOldConfValue;
        }

        return $ret;
    }
protected function generateLink($url, array $conf = null, $disableMP = false)
    {
        if ($conf === null) {
            $conf = array();
        }

        $mpOldConfValue = $GLOBALS['TSFE']->config['config']['MP_disableTypolinkClosestMPvalue'];
        if ($disableMP === true) {
            // Disable MP usage in typolink - link to the real page instead
            $GLOBALS['TSFE']->config['config']['MP_disableTypolinkClosestMPvalue'] = 1;
        }

        $conf['parameter'] = $url;

        $ret = $this->cObj->typoLink_URL($conf);
        // maybe baseUrlWrap is better? but breaks with realurl currently?
        $ret = GeneralUtility::fullUrl($ret);

        if ($disableMP === true) {
            // Restore old MP linking configuration
            $GLOBALS['TSFE']->config['config']['MP_disableTypolinkClosestMPvalue'] = $mpOldConfValue;
        }

        return $ret;
    }
protected function generateLink ( $ url , array $ conf = null , $ disableMP = false ) { if ( $ conf === null ) { $ conf = array ( ) ; } $ mpOldConfValue = $ GLOBALS [ 'TSFE' ] -> config [ 'config' ] [ 'MP_disableTypolinkClosestMPvalue' ] ; if ( $ disableMP === true ) { // Disable MP usage in typolink - link to the real page instead $ GLOBALS [ 'TSFE' ] -> config [ 'config' ] [ 'MP_disableTypolinkClosestMPvalue' ] = 1 ; } $ conf [ 'parameter' ] = $ url ; $ ret = $ this -> cObj -> typoLink_URL ( $ conf ) ; // maybe baseUrlWrap is better? but breaks with realurl currently? $ ret = GeneralUtility :: fullUrl ( $ ret ) ; if ( $ disableMP === true ) { // Restore old MP linking configuration $ GLOBALS [ 'TSFE' ] -> config [ 'config' ] [ 'MP_disableTypolinkClosestMPvalue' ] = $ mpOldConfValue ; } return $ ret ; }
Generate a link via TYPO3-Api

@param    integer|string $url       URL (id or string)
@param    array|NULL     $conf      URL configuration
@param    boolean        $disableMP Disable mountpoint linking

@return   string                      URL
Generate a link via TYPO3 - Api