You are here

protected function EntityController::isCacheable in Render cache 7.2

Parameters

array $default_cache_info:

array $context:

Return value

bool

Overrides BaseController::isCacheable

File

modules/controller/render_cache_entity/src/RenderCache/Controller/EntityController.php, line 20
Contains \Drupal\render_cache_entity\RenderCache\Controller\EntityController

Class

EntityController
EntityController - Provides render caching for entity objects.

Namespace

Drupal\render_cache_entity\RenderCache\Controller

Code

protected function isCacheable(array $default_cache_info, array $context) {
  return variable_get('render_cache_' . $this
    ->getPluginId() . '_' . $context['entity_type'] . '_enabled', TRUE) && parent::isCacheable($default_cache_info, $context);
}