function 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\DataCollectorCode
public function addState($key) {
$this->data['state_get'][$key] = isset($this->data['state_get'][$key]) ? $this->data['state_get'][$key] + 1 : 1;
}