Discovers available asset libraries in Drupal.
Hierarchy
- class \Drupal\Core\Asset\LibraryDiscovery implements LibraryDiscoveryInterface
File
- core/lib/Drupal/Core/Asset/LibraryDiscovery.php, line 10
Namespace
Drupal\Core\Asset
Members
Name | Modifiers | Type | Description |
---|---|---|---|
LibraryDiscovery::$collector | protected | property | The library discovery cache collector. |
LibraryDiscovery::$libraryDefinitions | protected | property | The final library definitions, statically cached. |
LibraryDiscovery::clearCachedDefinitions | public | function | Clears static and persistent library definition caches. Overrides LibraryDiscoveryInterface::clearCachedDefinitions |
LibraryDiscovery::getLibrariesByExtension | public | function | Gets all libraries defined by an extension. Overrides LibraryDiscoveryInterface::getLibrariesByExtension |
LibraryDiscovery::getLibraryByName | public | function | Gets a single library defined by an extension by name. Overrides LibraryDiscoveryInterface::getLibraryByName |
LibraryDiscovery::__construct | public | function | Constructs a new LibraryDiscovery instance. |
Please login to continue.