You are here

public function LibraryDiscoveryParser::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php, line 54
Contains \Drupal\Core\Asset\LibraryDiscoveryParser.

Class

LibraryDiscoveryParser
Parses library files to get extension data.

Namespace

Drupal\Core\Asset

Code

public function __construct($root, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager) {
  $this->root = $root;
  $this->moduleHandler = $module_handler;
  $this->themeManager = $theme_manager;
}