You are here

public function LibraryDiscovery::clearCachedDefinitions in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()
  2. 9 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()

File

core/lib/Drupal/Core/Asset/LibraryDiscovery.php, line 71

Class

LibraryDiscovery
Discovers available asset libraries in Drupal.

Namespace

Drupal\Core\Asset

Code

public function clearCachedDefinitions() {
  $this->libraryDefinitions = [];
  $this->collector
    ->clear();
}