/** * @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; }
/** * Make asset file objects */ protected function makePatternLabAssetFiles() { foreach ($this->patternlab->getAssets() as $asset) { $this->addFile(new AssetFile($asset)); } }