You are here

protected function BaseController::getCacheContext in Render cache 7.2

Parameters

object $object:

array $context:

Return value

array

Overrides AbstractBaseController::getCacheContext

3 calls to BaseController::getCacheContext()
BaseController::getCacheIdInfo in src/RenderCache/Controller/BaseController.php
Provides the fully pouplated cache information for a specific object.
BlockController::getCacheContext in modules/controller/render_cache_block/src/RenderCache/Controller/BlockController.php
EntityController::getCacheContext in modules/controller/render_cache_entity/src/RenderCache/Controller/EntityController.php
2 methods override BaseController::getCacheContext()
BlockController::getCacheContext in modules/controller/render_cache_block/src/RenderCache/Controller/BlockController.php
EntityController::getCacheContext in modules/controller/render_cache_entity/src/RenderCache/Controller/EntityController.php

File

src/RenderCache/Controller/BaseController.php, line 206
Contains \Drupal\render_cache\RenderCache\Controller\BaseController

Class

BaseController
Base class for Controller plugin objects.

Namespace

Drupal\render_cache\RenderCache\Controller

Code

protected function getCacheContext($object, array $context) {
  return $context;
}