You are here

protected function RestfulBase::getRenderedCache in RESTful 7

Get an entry from the rendered cache.

Parameters

array $context: An associative array with additional information to build the cache ID.

Return value

\stdClass The cache with rendered entity as returned by \RestfulEntityInterface::viewEntity().

See also

\RestfulEntityInterface::viewEntity().

4 calls to RestfulBase::getRenderedCache()
RestfulDataProviderCToolsPlugins::view in plugins/restful/RestfulDataProviderCToolsPlugins.php
@todo: We should generalize this, as it's repeated often.
RestfulDataProviderDbQuery::viewMultiple in plugins/restful/RestfulDataProviderDbQuery.php
View a collection of items.
RestfulDataProviderVariable::viewVariable in plugins/restful/RestfulDataProviderVariable.php
View a single variable.
RestfulEntityBase::viewEntity in plugins/restful/RestfulEntityBase.php
View an entity.

File

plugins/restful/RestfulBase.php, line 1280
Contains RestfulBase.

Class

RestfulBase
Class \RestfulBase

Code

protected function getRenderedCache(array $context = array()) {
  $cache_info = $this
    ->getPluginKey('render_cache');
  if (!$cache_info['render']) {
    return;
  }
  $cid = $this
    ->generateCacheId($context);
  return $this
    ->getCacheController()
    ->get($cid);
}