protected function SimplenewsSourceCacheStatic::getCid in Simplenews 7
Same name and namespace in other branches
- 7.2 includes/simplenews.source.inc \SimplenewsSourceCacheStatic::getCid()
Returns the cache identifier for the current source.
File
- includes/
simplenews.source.inc, line 875 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceCacheStatic
- Abstract implementation of the source caching that does static caching.
Code
protected function getCid() {
if (empty($this->cid)) {
$this->cid = $this->source
->getNode()->nid . ':' . $this->source
->getLanguage();
}
return $this->cid;
}