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::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::$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::$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

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

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;

AssetOptimizerInterface

Interface defining a service that optimizes an asset. Hierarchy interface \Drupal\Core\Asset\AssetOptimizerInterface File core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php, line 8 Namespace Drupal\Core\Asset Members Name Modifiers Type Description AssetOptimizerInterface::clean public function Removes unwanted content from an asset. AssetOptimizerInterface::optimize public function Optimizes an 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);