private function adjustPaths() { $theme = $this->assetFetcher->getTheme(); // During installation theme is not yet ready if ($theme) { $this->mergedContent = $this->assetFetcher->getTheme()->rewriteAssetsPathToTheme($this->mergedContent); } }
/** * @param UIAssetFetcher $assetFetcher * @return string */ private function getIndividualJsIncludesFromAssetFetcher($assetFetcher) { $jsIncludeString = ''; $assets = $assetFetcher->getCatalog()->getAssets(); foreach ($assets as $jsFile) { $jsFile->validateFile(); $jsIncludeString = $jsIncludeString . sprintf(self::JS_IMPORT_DIRECTIVE, $jsFile->getRelativeLocation()); } return $jsIncludeString; }
function __construct($fileLocations, $priorityOrder, $theme) { parent::__construct(array(), $theme); $this->fileLocations = $fileLocations; $this->priorityOrder = $priorityOrder; }