protected function LibraryDiscoveryCollector::resolveCacheMiss in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php \Drupal\Core\Asset\LibraryDiscoveryCollector::resolveCacheMiss()
Resolves a cache miss.
When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached.
Parameters
string $key: The offset that was requested.
Return value
mixed The value of the offset, or NULL if no value was found.
Overrides CacheCollector::resolveCacheMiss
File
- core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryCollector.php, line 84 - Contains \Drupal\Core\Asset\LibraryDiscoveryCollector.
Class
- LibraryDiscoveryCollector
- A CacheCollector implementation for building library extension info.
Namespace
Drupal\Core\AssetCode
protected function resolveCacheMiss($key) {
$this->storage[$key] = $this
->getLibraryDefinitions($key);
$this
->persist($key);
return $this->storage[$key];
}