protected function CacheDecoratedResource::defaultCacheInfo in RESTful 7.2
Gets the default cache info.
Return value
array The cache info.
3 calls to CacheDecoratedResource::defaultCacheInfo()
- CacheDecoratedResource::dataProviderFactory in src/
Plugin/ resource/ Decorators/ CacheDecoratedResource.php - Data provider factory.
- CacheDecoratedResource::newCacheObject in src/
Plugin/ resource/ Decorators/ CacheDecoratedResource.php - Get the default cache object based on the plugin configuration.
- CacheDecoratedResource::__construct in src/
Plugin/ resource/ Decorators/ CacheDecoratedResource.php - Constructs a Drupal\Component\Plugin\PluginBase object.
File
- src/
Plugin/ resource/ Decorators/ CacheDecoratedResource.php, line 237 - Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource
Class
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
protected function defaultCacheInfo() {
$plugin_definition = $this
->getPluginDefinition();
$cache_info = empty($plugin_definition['renderCache']) ? array() : $plugin_definition['renderCache'];
$cache_info += array(
'render' => variable_get('restful_render_cache', FALSE),
'class' => NULL,
'bin' => RenderCache::CACHE_BIN,
'expire' => CACHE_PERMANENT,
'simpleInvalidate' => TRUE,
'granularity' => DRUPAL_CACHE_PER_USER,
);
return $cache_info;
}