function LibraryDiscovery::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::__construct()
- 10 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::__construct()
- 11.x core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::__construct()
Constructs a new LibraryDiscovery instance.
Parameters
\Drupal\Core\Cache\CacheCollectorInterface $library_discovery_collector: The library discovery cache collector.
File
-
core/
lib/ Drupal/ Core/ Asset/ LibraryDiscovery.php, line 35
Class
- LibraryDiscovery
- Discovers available asset libraries in Drupal.
Namespace
Drupal\Core\AssetCode
public function __construct(CacheCollectorInterface $library_discovery_collector) {
$this->collector = $library_discovery_collector;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.