public function MultipleAssetLibrary::__construct in Libraries API 8.3
Construct an external library.
Parameters
string $id: The library ID.
array $definition: The library definition array.
\Drupal\libraries\ExternalLibrary\Type\LibraryTypeInterface $library_type: The library type of the library.
Overrides LibraryBase::__construct
File
- src/
ExternalLibrary/ Asset/ MultipleAssetLibrary.php, line 49
Class
- MultipleAssetLibrary
- Provides a class for a library with multiple attachable asset libraries.
Namespace
Drupal\libraries\ExternalLibrary\AssetCode
public function __construct($id, array $definition, LibraryTypeInterface $library_type) {
parent::__construct($id, $definition, $library_type);
$this->remoteUrl = $definition['remote_url'];
$this->libraries = $definition['libraries'];
}