Ejemplo n.º 1
0
 /**
  * @return array
  */
 protected function getStylesheets()
 {
     if (!isset($this->stylesheets)) {
         $this->stylesheets = [];
         foreach ($this->patternlab->getAssets() as $asset) {
             if (pathinfo($asset->getPath(), PATHINFO_EXTENSION) == 'css') {
                 $this->stylesheets[] = $asset->getFile();
             }
         }
     }
     return $this->stylesheets;
 }
Ejemplo n.º 2
0
 /**
  * Make asset file objects
  */
 protected function makePatternLabAssetFiles()
 {
     foreach ($this->patternlab->getAssets() as $asset) {
         $this->addFile(new AssetFile($asset));
     }
 }