private function ConfigCache::getSourcePath

Returns the path where the file corresponding to the supplied cache key can be included from.

Parameters

string $resource A cache key:

Return value

string A file path

4 calls to ConfigCache::getSourcePath()
ConfigCache::get in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ConfigCache.php
Loads and returns the value for the supplied cache key.
ConfigCache::getTimestamp in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ConfigCache.php
Returns a timestamp for when the cache was created.
ConfigCache::has in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ConfigCache.php
Checks of the cache has a file.
ConfigCache::set in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ConfigCache.php
Writes a value to a file.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ConfigCache.php, line 117

Class

ConfigCache
A config cache stores values using var_export() and include.

Namespace

Assetic\Cache

Code

private function getSourcePath($resource) {
  $key = md5($resource);
  return $this->dir . '/' . $key[0] . '/' . $key . '.php';
}