5 * Legacy Webprofiler module file.
9 * Implements hook_theme().
11 function webprofiler_theme() {
13 'webprofiler_loader' => [
14 'template' => 'Profiler/webprofiler_loader',
15 'variables' => ['token' => NULL, 'profiler_url' => NULL],
17 'webprofiler_toolbar' => [
18 'template' => 'Profiler/webprofiler_toolbar',
24 'webprofiler_panel' => [
25 'template' => 'Profiler/webprofiler_panel',
30 'webprofiler_dashboard' => [
31 'template' => 'Profiler/webprofiler_dashboard',
35 'spinner_path' => NULL,
42 * Implements hook_cache_flush().
44 function webprofiler_cache_flush() {
45 $config = \Drupal::configFactory()->get('webprofiler.config');
47 if ($config->get('purge_on_cache_clear')) {
48 $profiler = \Drupal::service('profiler');