protected function PageController::isCacheable in Render cache 7.2
Parameters
array $default_cache_info:
array $context:
Return value
bool
Overrides BaseController::isCacheable
File
- modules/
controller/ render_cache_page/ src/ RenderCache/ Controller/ PageController.php, line 65 - Contains \Drupal\render_cache_page\RenderCache\Controller\PageController
Class
- PageController
- PageController - Provides render caching for page objects.
Namespace
Drupal\render_cache_page\RenderCache\ControllerCode
protected function isCacheable(array $default_cache_info, array $context) {
// Disabled caching for now.
return variable_get('render_cache_' . $this
->getPluginId() . '_' . $context['page_callback'] . '_enabled', FALSE) && parent::isCacheable($default_cache_info, $context);
}