function LibraryDependencyResolverInterface::getLibrariesWithDependencies

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/LibraryDependencyResolverInterface.php \Drupal\Core\Asset\LibraryDependencyResolverInterface::getLibrariesWithDependencies()
  2. 8.9.x core/lib/Drupal/Core/Asset/LibraryDependencyResolverInterface.php \Drupal\Core\Asset\LibraryDependencyResolverInterface::getLibrariesWithDependencies()
  3. 10 core/lib/Drupal/Core/Asset/LibraryDependencyResolverInterface.php \Drupal\Core\Asset\LibraryDependencyResolverInterface::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.

1 method overrides LibraryDependencyResolverInterface::getLibrariesWithDependencies()
LibraryDependencyResolver::getLibrariesWithDependencies in core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php
Gets the given libraries with their dependencies.

File

core/lib/Drupal/Core/Asset/LibraryDependencyResolverInterface.php, line 23

Class

LibraryDependencyResolverInterface
Resolves the dependencies of asset (CSS/JavaScript) libraries.

Namespace

Drupal\Core\Asset

Code

public function getLibrariesWithDependencies(array $libraries);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.