You are here

public function LibraryTypeBase::__construct in Libraries API 8.3

Constructs the asset library type.

Parameters

string $plugin_id: The plugin ID taken from the class annotation.

\Drupal\Component\Plugin\Factory\FactoryInterface $locator_factory: The locator factory.

\Drupal\Component\Plugin\Factory\FactoryInterface $detector_factory: The version detector factory.

1 call to LibraryTypeBase::__construct()
PhpFileLibraryType::__construct in src/Plugin/libraries/Type/PhpFileLibraryType.php
Constructs the PHP file library type.
1 method overrides LibraryTypeBase::__construct()
PhpFileLibraryType::__construct in src/Plugin/libraries/Type/PhpFileLibraryType.php
Constructs the PHP file library type.

File

src/ExternalLibrary/Type/LibraryTypeBase.php, line 48

Class

LibraryTypeBase
Provides a base class for library types.

Namespace

Drupal\libraries\ExternalLibrary\Type

Code

public function __construct($plugin_id, FactoryInterface $locator_factory, FactoryInterface $detector_factory) {
  $this->id = $plugin_id;
  $this->locatorFactory = $locator_factory;
  $this->detectorFactory = $detector_factory;
}