function LibraryDiscoveryCollector::clearCachedDefinitions

Clears static and persistent cache.

Overrides LibraryDiscoveryInterface::clearCachedDefinitions

Deprecated

in drupal:11.1.0 and is removed from drupal:12.0.0. Use LibraryDiscoveryCollector::clear() instead.

See also

https://www.drupal.org/node/3462970

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php, line 199

Class

LibraryDiscoveryCollector
A CacheCollector implementation for building library extension info.

Namespace

Drupal\Core\Asset

Code

public function clearCachedDefinitions() {
    @trigger_error(__METHOD__ . 'is deprecated in drupal:11.0.0 and is removed from drupal:12.0.0. Use ::clear() instead. See https://www.drupal.org/node/3462970', E_USER_DEPRECATED);
    $this->clear();
}

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