AssetResolver::getCssAssets

public AssetResolver::getCssAssets(AttachedAssetsInterface $assets, $optimize) Returns the CSS assets for the current response's libraries. It returns the CSS assets in order, according to the SMACSS categories specified in the assets' weights: CSS_BASE CSS_LAYOUT CSS_COMPONENT CSS_STATE CSS_THEME This ensures proper cascading of styles so themes can easily override module styles through CSS selectors. Themes may replace module-defined CSS files by adding a stylesheet with the same filename.

AssetResolver::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/lib/Drupal/Core/Asset/AssetResolver.php, line 43 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $themeManager;

AssetResolver::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Asset/AssetResolver.php, line 36 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $moduleHandler;

AssetResolver::$libraryDiscovery

The library discovery service. Type: \Drupal\Core\Asset\LibraryDiscoveryInterface File core/lib/Drupal/Core/Asset/AssetResolver.php, line 22 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $libraryDiscovery;

AssetResolver::$libraryDependencyResolver

The library dependency resolver. Type: \Drupal\Core\Asset\LibraryDependencyResolverInterface File core/lib/Drupal/Core/Asset/AssetResolver.php, line 29 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $libraryDependencyResolver;

AssetResolver::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface $language_manager File core/lib/Drupal/Core/Asset/AssetResolver.php, line 50 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $languageManager;

AssetResolver::$cache

The cache backend. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Asset/AssetResolver.php, line 57 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $cache;

AssetResolver

The default asset resolver. Hierarchy class \Drupal\Core\Asset\AssetResolver implements AssetResolverInterface File core/lib/Drupal/Core/Asset/AssetResolver.php, line 15 Namespace Drupal\Core\Asset Members Name Modifiers Type Description AssetResolver::$cache protected property The cache backend. AssetResolver::$languageManager protected property The language manager. AssetResolver::$libraryDependencyResolver protected property The library dependency reso

AssetOptimizerInterface::optimize

public AssetOptimizerInterface::optimize(array $asset) Optimizes an asset. Parameters array $asset: An asset. Return value string The optimized asset's contents. File core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php, line 19 Class AssetOptimizerInterface Interface defining a service that optimizes an asset. Namespace Drupal\Core\Asset Code public function optimize(array $asset);

AssetOptimizerInterface::clean

public AssetOptimizerInterface::clean($content) Removes unwanted content from an asset. Parameters string $content: The content of an asset. Return value string The cleaned asset's contents. File core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php, line 30 Class AssetOptimizerInterface Interface defining a service that optimizes an asset. Namespace Drupal\Core\Asset Code public function clean($content);