@@ 179-192 (lines=14) @@ | ||
176 | * @throws InvalidEntityException |
|
177 | * @throws DuplicateCollectionIdentifierException |
|
178 | */ |
|
179 | public function addEditorStyle($handle, array $dependencies = array()) |
|
180 | { |
|
181 | if ($this->assets->hasStylesheetAsset($handle)) { |
|
182 | return $this->assets->getStylesheetAsset($handle); |
|
183 | } |
|
184 | return parent::addStylesheet( |
|
185 | $handle, |
|
186 | $this->registry->getCssUrl( |
|
187 | $this->domain->assetNamespace(), |
|
188 | $handle |
|
189 | ), |
|
190 | $this->addDefaultBlockStyleDependencies($dependencies) |
|
191 | ); |
|
192 | } |
|
193 | ||
194 | ||
195 | /** |
|
@@ 230-243 (lines=14) @@ | ||
227 | * @throws InvalidEntityException |
|
228 | * @throws DuplicateCollectionIdentifierException |
|
229 | */ |
|
230 | public function addStyle($handle, array $dependencies = array()) |
|
231 | { |
|
232 | if ($this->assets->hasStylesheetAsset($handle)) { |
|
233 | return $this->assets->getStylesheetAsset($handle); |
|
234 | } |
|
235 | return parent::addStylesheet( |
|
236 | $handle, |
|
237 | $this->registry->getCssUrl( |
|
238 | $this->domain->assetNamespace(), |
|
239 | $handle |
|
240 | ), |
|
241 | $dependencies + array( CoreAssetManager::CSS_HANDLE_EE_COMPONENTS ) |
|
242 | ); |
|
243 | } |
|
244 | ||
245 | ||
246 | /** |