public function LibraryDiscovery::clearCachedDefinitions in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()
- 10 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()
Clears static and persistent library definition caches.
Overrides LibraryDiscoveryInterface::clearCachedDefinitions
File
- core/
lib/ Drupal/ Core/ Asset/ LibraryDiscovery.php, line 71
Class
- LibraryDiscovery
- Discovers available asset libraries in Drupal.
Namespace
Drupal\Core\AssetCode
public function clearCachedDefinitions() {
$this->libraryDefinitions = [];
$this->collector
->clear();
}