private function _getThumbnails()
{
$cacheKey = self::getCacheKey();
$cache = craft()->cache->get($cacheKey);
if (!$cache) {
$prefix = self::getFileNamePrefix();
$assets = craft()->elements->getCriteria(ElementType::Asset, array('kind' => 'json', 'filename' => $prefix . '*', 'limit' => null))->find();
$thumbnails = array();
foreach ($assets as $asset) {
$embed = craft()->embeddedAssets->getEmbeddedAsset($asset);
if ($embed) {
$thumbnails[$asset->id] = $embed->thumbnailUrl;
}
}
craft()->cache->set($cacheKey, $thumbnails);
$cache = $thumbnails;
}
return $cache;
}