function LibraryDiscovery::clearCachedDefinitions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()
  2. 8.9.x core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()
  3. 11.x core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::clearCachedDefinitions()

File

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

Class

LibraryDiscovery
Discovers available asset libraries in Drupal.

Namespace

Drupal\Core\Asset

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.