Checks of the cache has a file.
Parameters
string $resource A cache key:
Return value
Boolean True if a file exists
File
- drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ConfigCache.php, line 40
Class
- ConfigCache
- A config cache stores values using var_export() and include.
Namespace
Assetic\Cache
Code
public function has($resource) {
return file_exists($this
->getSourcePath($resource));
}