public static function LibraryInterface::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
1 method overrides LibraryInterface::create()
- LibraryBase::create in src/
ExternalLibrary/ LibraryBase.php - Creates an instance of the library from its definition.
File
- src/
ExternalLibrary/ LibraryInterface.php, line 26
Class
- LibraryInterface
- Provides an interface for different types of external libraries.
Namespace
Drupal\libraries\ExternalLibraryCode
public static function create($id, array $definition, LibraryTypeInterface $type);