public static function LibraryBase::create in Libraries API 8.3
Creates an instance of the library from its definition.
Parameters
string $id: The library ID.
array $definition: The library definition array.
\Drupal\libraries\ExternalLibrary\Type\LibraryTypeInterface $type: The library type of this library.
Return value
static
Overrides LibraryInterface::create
File
- src/
ExternalLibrary/ LibraryBase.php, line 54
Class
- LibraryBase
- Provides a base external library implementation.
Namespace
Drupal\libraries\ExternalLibraryCode
public static function create($id, array $definition, LibraryTypeInterface $type) {
static::processDefinition($definition);
return new static($id, $definition, $type);
}