protected function BlockController::getCacheKeys in Render cache 7.2
Parameters
object $object:
array $context:
Return value
array
Overrides BaseController::getCacheKeys
File
- modules/
controller/ render_cache_block/ src/ RenderCache/ Controller/ BlockController.php, line 75 - Contains \Drupal\render_cache_block\RenderCache\Controller\BlockController
Class
- BlockController
- BlockController - Provides render caching for block objects.
Namespace
Drupal\render_cache_block\RenderCache\ControllerCode
protected function getCacheKeys($object, array $context) {
// Helper variables.
// @todo Unused variable $block
$block = $object;
return array_merge(parent::getCacheKeys($object, $context), array(
$context['region'],
$context['module'],
$context['delta'],
));
}