You are here

public function PhpFileLibraryType::__construct in Libraries API 8.3

Constructs the PHP file 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.

\Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLoaderInterface $php_file_loader: The PHP file loader.

Overrides LibraryTypeBase::__construct

File

src/Plugin/libraries/Type/PhpFileLibraryType.php, line 37

Class

PhpFileLibraryType
Plugin annotation @LibraryType("php_file");

Namespace

Drupal\libraries\Plugin\libraries\Type

Code

public function __construct($plugin_id, FactoryInterface $locator_factory, FactoryInterface $detector_factory, PhpFileLoaderInterface $php_file_loader) {
  parent::__construct($plugin_id, $locator_factory, $detector_factory);
  $this->phpFileLoader = $php_file_loader;
}