private function EntityPagerAdvice::viewsCachingUsed in Entity Pager 7
Get Cache status of View.
A system state function on whether Views caching is configured on the View.
Return value
bool True or false on whether views chaching is used.
1 call to EntityPagerAdvice::viewsCachingUsed()
- EntityPagerAdvice::runAdviceLogic in includes/
EntityPagerAdvice.inc - Run advice logic.
File
- includes/
EntityPagerAdvice.inc, line 45 - A class to manage advice when using the Entity Pager module.
Class
- EntityPagerAdvice
- Class EntityPagerAdvice.
Code
private function viewsCachingUsed() {
$view = $this
->getView();
$cache_value = $view->query->pager->display->handler->default_display->display->display_options['cache']['type'];
$cache_result = TRUE;
if ($cache_value == 'none') {
$cache_result = FALSE;
}
return $cache_result;
}