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