getCompiledBaseCss() 공개 메소드

Return the base.less compiled to css
public getCompiledBaseCss ( ) : Piwik\AssetManager\UIAsset
리턴 Piwik\AssetManager\UIAsset
예제 #1
0
 /**
  * @group Core
  */
 public function test_getCompiledBaseCss()
 {
     $this->setStylesheetCacheBuster(self::FIRST_CACHE_BUSTER_SS);
     $staticStylesheetList = array_merge($this->getCorePluginStylesheetFiles(), array($this->getCoreThemeStylesheet()));
     $minimalAssetFetcher = new StaticUIAssetFetcher(array_reverse($staticStylesheetList), $staticStylesheetList, $this->getCoreTheme());
     $this->assetManager->setMinimalStylesheetFetcher($minimalAssetFetcher);
     $this->mergedAsset = $this->assetManager->getCompiledBaseCss();
     $this->validateMergedStylesheet();
 }
예제 #2
0
 public static function compileCustomStylesheets($files)
 {
     $assetManager = new AssetManager();
     $fetcher = new StaticUIAssetFetcher($files, $priorityOrder = array(), $theme = null);
     $assetManager->setMinimalStylesheetFetcher($fetcher);
     return $assetManager->getCompiledBaseCss()->getContent();
 }