You are here

public function DatabaseDataCollector::getQueryHighlightThreshold in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::getQueryHighlightThreshold()
  2. 8.2 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::getQueryHighlightThreshold()
  3. 4.x webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::getQueryHighlightThreshold()

Returns the configured query highlight threshold.

Return value

int

1 call to DatabaseDataCollector::getQueryHighlightThreshold()
DatabaseDataCollector::getData in webprofiler/src/DataCollector/DatabaseDataCollector.php

File

webprofiler/src/DataCollector/DatabaseDataCollector.php, line 157

Class

DatabaseDataCollector
Class DatabaseDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getQueryHighlightThreshold() {

  // When a profile is loaded from storage this object is deserialized and
  // no constructor is called so we cannot use dependency injection.
  return \Drupal::config('webprofiler.config')
    ->get('query_highlight');
}