protected function BaseController::isCacheable in Render cache 7.2
Parameters
array $default_cache_info:
array $context:
Return value
bool
Overrides AbstractBaseController::isCacheable
4 calls to BaseController::isCacheable()
- BaseController::getCacheInfoMap in src/
RenderCache/ Controller/ BaseController.php - Returns the cache information map for the given objects.
- BlockController::isCacheable in modules/
controller/ render_cache_block/ src/ RenderCache/ Controller/ BlockController.php - EntityController::isCacheable in modules/
controller/ render_cache_entity/ src/ RenderCache/ Controller/ EntityController.php - PageController::isCacheable in modules/
controller/ render_cache_page/ src/ RenderCache/ Controller/ PageController.php
3 methods override BaseController::isCacheable()
- BlockController::isCacheable in modules/
controller/ render_cache_block/ src/ RenderCache/ Controller/ BlockController.php - EntityController::isCacheable in modules/
controller/ render_cache_entity/ src/ RenderCache/ Controller/ EntityController.php - PageController::isCacheable in modules/
controller/ render_cache_page/ src/ RenderCache/ Controller/ PageController.php
File
- src/
RenderCache/ Controller/ BaseController.php, line 195 - Contains \Drupal\render_cache\RenderCache\Controller\BaseController
Class
- BaseController
- Base class for Controller plugin objects.
Namespace
Drupal\render_cache\RenderCache\ControllerCode
protected function isCacheable(array $default_cache_info, array $context) {
$ignore_request_method_check = $default_cache_info['render_cache_ignore_request_method_check'];
return isset($default_cache_info['granularity']) && variable_get('render_cache_enabled', TRUE) && variable_get('render_cache_' . $this
->getPluginId() . '_enabled', TRUE) && render_cache_call_is_cacheable(NULL, $ignore_request_method_check);
}