Loading core/lib/Drupal/Core/Asset/AssetResolver.php +2 −0 Original line number Diff line number Diff line Loading @@ -170,12 +170,14 @@ public function getCssAssets(AttachedAssetsInterface $assets, $optimize, Languag $this->moduleHandler->alter('css', $css, $assets, $language); $this->themeManager->alter('css', $css, $assets, $language); if (!empty($css)) { // Sort CSS items, so that they appear in the correct order. uasort($css, [static::class, 'sort']); if ($optimize) { $css = \Drupal::service('asset.css.collection_optimizer')->optimize($css, $libraries_to_load, $language); } } $this->cache->set($cid, $css, CacheBackendInterface::CACHE_PERMANENT, ['library_info']); return $css; Loading Loading
core/lib/Drupal/Core/Asset/AssetResolver.php +2 −0 Original line number Diff line number Diff line Loading @@ -170,12 +170,14 @@ public function getCssAssets(AttachedAssetsInterface $assets, $optimize, Languag $this->moduleHandler->alter('css', $css, $assets, $language); $this->themeManager->alter('css', $css, $assets, $language); if (!empty($css)) { // Sort CSS items, so that they appear in the correct order. uasort($css, [static::class, 'sort']); if ($optimize) { $css = \Drupal::service('asset.css.collection_optimizer')->optimize($css, $libraries_to_load, $language); } } $this->cache->set($cid, $css, CacheBackendInterface::CACHE_PERMANENT, ['library_info']); return $css; Loading