public function ConfigDataCollector::addConfigName in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector::addConfigName()
- 8.2 webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector::addConfigName()
- 4.x webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector::addConfigName()
Registers a new requested config name.
Parameters
string $name: The name of the config.
File
- webprofiler/
src/ DataCollector/ ConfigDataCollector.php, line 30
Class
- ConfigDataCollector
- Provides a datacollector to show all requested configs.
Namespace
Drupal\webprofiler\DataCollectorCode
public function addConfigName($name) {
$this->data['config_names'][$name] = isset($this->data['config_names'][$name]) ? $this->data['config_names'][$name] + 1 : 1;
}