You are here

public function ConfigDataCollector::addConfigName in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector::addConfigName()
  2. 8.2 webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector::addConfigName()
  3. 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\DataCollector

Code

public function addConfigName($name) {
  $this->data['config_names'][$name] = isset($this->data['config_names'][$name]) ? $this->data['config_names'][$name] + 1 : 1;
}