You are here

function new_relic_rpm_views_pre_build in New Relic 2.x

Same name and namespace in other branches
  1. 8 new_relic_rpm.module \new_relic_rpm_views_pre_build()
  2. 2.0.x new_relic_rpm.module \new_relic_rpm_views_pre_build()

Implements hook_views_pre_build().

File

./new_relic_rpm.module, line 70
Drupal module implementing New Relic.

Code

function new_relic_rpm_views_pre_build(ViewExecutable $view) {
  if (\Drupal::config('new_relic_rpm.settings')
    ->get('views_log_slow')) {
    Timer::start(_new_relic_rpm_views_timer_name($view));
  }
}