You are here

public function StateDataCollector::addState in Devel 8.3

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

Parameters

$key:

File

webprofiler/src/DataCollector/StateDataCollector.php, line 27

Class

StateDataCollector
Provides a data collector to get all requested state values.

Namespace

Drupal\webprofiler\DataCollector

Code

public function addState($key) {
  $this->data['state_get'][$key] = isset($this->data['state_get'][$key]) ? $this->data['state_get'][$key] + 1 : 1;
}