public function StateDataCollector::addState in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/StateDataCollector.php \Drupal\webprofiler\DataCollector\StateDataCollector::addState()
- 8 webprofiler/src/DataCollector/StateDataCollector.php \Drupal\webprofiler\DataCollector\StateDataCollector::addState()
- 8.2 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\DataCollectorCode
public function addState($key) {
$this->data['state_get'][$key] = isset($this->data['state_get'][$key]) ? $this->data['state_get'][$key] + 1 : 1;
}