public function LibraryDependencyResolver::getLibrariesWithDependencies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php \Drupal\Core\Asset\LibraryDependencyResolver::getLibrariesWithDependencies()
Gets the given libraries with their dependencies.
Given ['core/a', 'core/b', 'core/c'], with core/a depending on core/c and core/b on core/d, returns ['core/a', 'core/b', 'core/c', 'core/d'].
Parameters
string[] $libraries: A list of libraries, in the order they should be loaded.
Return value
string[] A list of libraries, in the order they should be loaded, including their dependencies.
Overrides LibraryDependencyResolverInterface::getLibrariesWithDependencies
1 call to LibraryDependencyResolver::getLibrariesWithDependencies()
- LibraryDependencyResolver::getMinimalRepresentativeSubset in core/
lib/ Drupal/ Core/ Asset/ LibraryDependencyResolver.php - Gets the minimal representative subset of the given libraries.
File
- core/
lib/ Drupal/ Core/ Asset/ LibraryDependencyResolver.php, line 35 - Contains \Drupal\Core\Asset\LibraryDependencyResolver.
Class
- LibraryDependencyResolver
- Resolves the dependencies of asset (CSS/JavaScript) libraries.
Namespace
Drupal\Core\AssetCode
public function getLibrariesWithDependencies(array $libraries) {
return $this
->doGetDependencies($libraries);
}