FluidTYPO3\Vhs\ViewHelpers\Media\AbstractMediaViewHelper::preprocessSourceUri PHP Method

preprocessSourceUri() public method

Turns a relative source URI into an absolute URL if required
public preprocessSourceUri ( string $src ) : string
$src string
return string
    public function preprocessSourceUri($src)
    {
        $src = $GLOBALS['TSFE']->absRefPrefix . GeneralUtility::rawUrlEncodeFP($src);
        if (false === empty($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_vhs.']['settings.']['prependPath'])) {
            $src = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_vhs.']['settings.']['prependPath'] . $src;
        } elseif ('BE' === TYPO3_MODE || false === (bool) $this->arguments['relative']) {
            $src = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . ltrim($src, '/');
        }
        return $src;
    }