FluidTYPO3\Vhs\ViewHelpers\Resource\AbstractImageViewHelper::preprocessSourceUri PHP Méthode

preprocessSourceUri() public méthode

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