W3cubDocs

/Drupal 8

public function LibraryDiscoveryParser::__construct

public LibraryDiscoveryParser::__construct($root, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager)

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.

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php, line 51

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;
}

© 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!LibraryDiscoveryParser.php/function/LibraryDiscoveryParser::__construct/8.1.x