FluidTYPO3\Vhs\Service\AssetService::prefixPath PHP Method

prefixPath() protected method

Prefix a path according to "absRefPrefix" TS configuration.
protected prefixPath ( string $fileRelativePathAndFilename ) : string
$fileRelativePathAndFilename string
return string
    protected function prefixPath($fileRelativePathAndFilename)
    {
        $settings = $this->getSettings();
        $prefixPath = $settings['prependPath'];
        if (false === empty($GLOBALS['TSFE']->absRefPrefix) && true === empty($prefixPath)) {
            $fileRelativePathAndFilename = $GLOBALS['TSFE']->absRefPrefix . $fileRelativePathAndFilename;
        } elseif (false === empty($prefixPath)) {
            $fileRelativePathAndFilename = $prefixPath . $fileRelativePathAndFilename;
        }
        return $fileRelativePathAndFilename;
    }