You are here

private function EntityPagerAdvice::checkPerformance in Entity Pager 7

Check performance.

See if the option in the View is set to set to log performance. see: View > Format > Settings > Log performance suggestions.

Return value

bool True mean check performance, false mean do not check performance.

1 call to EntityPagerAdvice::checkPerformance()
EntityPagerAdvice::runAdviceLogic in includes/EntityPagerAdvice.inc
Run advice logic.

File

includes/EntityPagerAdvice.inc, line 25
A class to manage advice when using the Entity Pager module.

Class

EntityPagerAdvice
Class EntityPagerAdvice.

Code

private function checkPerformance() {
  $check_performance = FALSE;

  // Get Views settings.
  $settings = $this
    ->getSettings($this
    ->getView());
  if ($settings['next_prev']['log_performance']) {
    $check_performance = TRUE;
  }
  return $check_performance;
}