You are here

protected function BlockController::isCacheable in Render cache 7.2

Parameters

array $default_cache_info:

array $context:

Return value

bool

Overrides BaseController::isCacheable

File

modules/controller/render_cache_block/src/RenderCache/Controller/BlockController.php, line 21
Contains \Drupal\render_cache_block\RenderCache\Controller\BlockController

Class

BlockController
BlockController - Provides render caching for block objects.

Namespace

Drupal\render_cache_block\RenderCache\Controller

Code

protected function isCacheable(array $default_cache_info, array $context) {

  // Disabled caching for now.
  return variable_get('render_cache_' . $this
    ->getPluginId() . '_' . $context['region'] . '_enabled', TRUE) && parent::isCacheable($default_cache_info, $context);
}