LibraryDiscovery::clearCachedDefinitions

public LibraryDiscovery::clearCachedDefinitions()

Clears static and persistent library definition caches.

Overrides LibraryDiscoveryInterface::clearCachedDefinitions

File

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

Class

LibraryDiscovery
Discovers available asset libraries in Drupal.

Namespace

Drupal\Core\Asset

Code

public function clearCachedDefinitions() {
  $this->libraryDefinitions = [];
  $this->collector->clear();
}
doc_Drupal
2016-10-29 09:23:06
Comments
Leave a Comment

Please login to continue.