Neos\Neos\ViewHelpers\Backend\JavascriptConfigurationViewHelper::getStaticResourceWebBaseUri PHP Method

getStaticResourceWebBaseUri() protected method

protected getStaticResourceWebBaseUri ( string $resourcePath ) : string
$resourcePath string
return string
    protected function getStaticResourceWebBaseUri($resourcePath)
    {
        $localizedResourcePathData = $this->i18nService->getLocalizedFilename($resourcePath);
        $matches = array();
        try {
            if (preg_match('#resource://([^/]+)/Public/(.*)#', current($localizedResourcePathData), $matches) === 1) {
                $packageKey = $matches[1];
                $path = $matches[2];
                return $this->resourceManager->getPublicPackageResourceUri($packageKey, $path);
            }
        } catch (\Exception $exception) {
            $this->systemLogger->logException($exception);
        }
        return '';
    }