function StaticFileCacheBackend::fetch
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::fetch()
- 8.9.x core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::fetch()
- 11.x core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::fetch()
Overrides FileCacheBackendInterface::fetch
File
-
core/
tests/ Drupal/ Tests/ Component/ FileCache/ StaticFileCacheBackend.php, line 41
Class
- StaticFileCacheBackend
- Allows to cache data based on file modification dates in a static cache.
Namespace
Drupal\Tests\Component\FileCacheCode
public function fetch(array $cids) {
$result = [];
foreach ($cids as $cid) {
if (isset(static::$cache[$this->bin][$cid])) {
$result[$cid] = static::$cache[$this->bin][$cid];
}
}
return $result;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.