public preprocessSourceUri ( string $source ) : string | ||
$source | string | |
return | 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;
}