You are here

public function PhpFileLibrary::__construct in Libraries API 8.3

Constructs a PHP file library.

Parameters

string $id: The library ID.

array $definition: The library definition array.

\Drupal\libraries\ExternalLibrary\Type\LibraryTypeInterface $type: The library type of this library.

Overrides LibraryBase::__construct

File

src/ExternalLibrary/PhpFile/PhpFileLibrary.php, line 35

Class

PhpFileLibrary
Provides a base PHP file library implementation.

Namespace

Drupal\libraries\ExternalLibrary\PhpFile

Code

public function __construct($id, array $definition, LibraryTypeInterface $type) {
  parent::__construct($id, $definition, $type);
  $this->files = $definition['files'];
}