W3cubDocs

/Drupal 8

public function AssetResolver::__construct

public AssetResolver::__construct(LibraryDiscoveryInterface $library_discovery, LibraryDependencyResolverInterface $library_dependency_resolver, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager, LanguageManagerInterface $language_manager, CacheBackendInterface $cache)

Constructs a new AssetResolver instance.

Parameters

\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.

\Drupal\Core\Asset\LibraryDependencyResolverInterface $library_dependency_resolver: The library dependency resolver.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.

File

core/lib/Drupal/Core/Asset/AssetResolver.php, line 75

Class

AssetResolver
The default asset resolver.

Namespace

Drupal\Core\Asset

Code

public function __construct(LibraryDiscoveryInterface $library_discovery, LibraryDependencyResolverInterface $library_dependency_resolver, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager, LanguageManagerInterface $language_manager, CacheBackendInterface $cache) {
  $this->libraryDiscovery = $library_discovery;
  $this->libraryDependencyResolver = $library_dependency_resolver;
  $this->moduleHandler = $module_handler;
  $this->themeManager = $theme_manager;
  $this->languageManager = $language_manager;
  $this->cache = $cache;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Asset!AssetResolver.php/function/AssetResolver::__construct/8.1.x