You are here

protected function EntityController::getCacheKeys in Render cache 7.2

Parameters

object $object:

array $context:

Return value

array

Overrides BaseController::getCacheKeys

File

modules/controller/render_cache_entity/src/RenderCache/Controller/EntityController.php, line 49
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 getCacheKeys($object, array $context) {
  return array_merge(parent::getCacheKeys($object, $context), array(
    $context['entity_type'],
    $context['view_mode'],
  ));
}