Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
63 | 63 |
64 /** | 64 /** |
65 * {@inheritdoc} | 65 * {@inheritdoc} |
66 */ | 66 */ |
67 public function getMinimalRepresentativeSubset(array $libraries) { | 67 public function getMinimalRepresentativeSubset(array $libraries) { |
68 assert(count($libraries) === count(array_unique($libraries)), '$libraries can\'t contain duplicate items.'); | |
69 | |
68 $minimal = []; | 70 $minimal = []; |
69 | 71 |
70 // Determine each library's dependencies. | 72 // Determine each library's dependencies. |
71 $with_deps = []; | 73 $with_deps = []; |
72 foreach ($libraries as $library) { | 74 foreach ($libraries as $library) { |