function LibraryDiscoveryParser::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php \Drupal\Core\Asset\LibraryDiscoveryParser::__construct()
- 8.9.x core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php \Drupal\Core\Asset\LibraryDiscoveryParser::__construct()
- 10 core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php \Drupal\Core\Asset\LibraryDiscoveryParser::__construct()
Constructs a new LibraryDiscoveryParser instance.
Parameters
string $root: The app root.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.
\Drupal\Core\Asset\LibrariesDirectoryFileFinder $libraries_directory_file_finder: The libraries directory file finder.
\Drupal\Core\Extension\ExtensionPathResolver $extension_path_resolver: The extension path resolver.
\Drupal\Core\Theme\ComponentPluginManager $component_plugin_manager: The component plugin manager.
File
-
core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryParser.php, line 101
Class
- LibraryDiscoveryParser
- Parses library files to get extension data.
Namespace
Drupal\Core\AssetCode
public function __construct($root, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager, StreamWrapperManagerInterface $stream_wrapper_manager, LibrariesDirectoryFileFinder $libraries_directory_file_finder, ExtensionPathResolver $extension_path_resolver, ComponentPluginManager $component_plugin_manager) {
$this->root = $root;
$this->moduleHandler = $module_handler;
$this->themeManager = $theme_manager;
$this->streamWrapperManager = $stream_wrapper_manager;
$this->librariesDirectoryFileFinder = $libraries_directory_file_finder;
$this->extensionPathResolver = $extension_path_resolver;
$this->fileCache = FileCacheFactory::get('library_parser');
$this->componentPluginManager = $component_plugin_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.