You are here

public function LibraryManager::__construct in Libraries API 8.3

Constructs an external library manager.

Parameters

\Drupal\libraries\ExternalLibrary\Definition\DefinitionDiscoveryInterface $definition_disovery: The library registry.

\Drupal\Component\Plugin\Factory\FactoryInterface $library_type_factory: The library type factory.

File

src/ExternalLibrary/LibraryManager.php, line 42

Class

LibraryManager
Provides a manager for external libraries.

Namespace

Drupal\libraries\ExternalLibrary

Code

public function __construct(DefinitionDiscoveryInterface $definition_disovery, FactoryInterface $library_type_factory) {
  $this->definitionDiscovery = $definition_disovery;
  $this->libraryTypeFactory = $library_type_factory;
}