class ConfigDataCollector in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector
- 8.2 webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector
- 4.x webprofiler/src/DataCollector/ConfigDataCollector.php \Drupal\webprofiler\DataCollector\ConfigDataCollector
Provides a datacollector to show all requested configs.
Hierarchy
- class \Drupal\webprofiler\DataCollector\ConfigDataCollector extends \Symfony\Component\HttpKernel\DataCollector\DataCollector implements DrupalDataCollectorInterface uses StringTranslationTrait
Expanded class hierarchy of ConfigDataCollector
1 file declares its use of ConfigDataCollector
- ConfigFactoryWrapper.php in webprofiler/
src/ Config/ ConfigFactoryWrapper.php
1 string reference to 'ConfigDataCollector'
- webprofiler.services.yml in webprofiler/
webprofiler.services.yml - webprofiler/webprofiler.services.yml
1 service uses ConfigDataCollector
File
- webprofiler/
src/ DataCollector/ ConfigDataCollector.php, line 14
Namespace
Drupal\webprofiler\DataCollectorView source
class ConfigDataCollector extends DataCollector implements DrupalDataCollectorInterface {
use StringTranslationTrait, DrupalDataCollectorTrait;
/**
* {@inheritdoc}
*/
public function collect(Request $request, Response $response, \Exception $exception = NULL) {
}
/**
* Registers a new requested config name.
*
* @param string $name
* The name of the config.
*/
public function addConfigName($name) {
$this->data['config_names'][$name] = isset($this->data['config_names'][$name]) ? $this->data['config_names'][$name] + 1 : 1;
}
/**
* Callback to display the config names.
*/
public function getConfigNames() {
return $this->data['config_names'];
}
/**
* {@inheritdoc}
*/
public function getName() {
return 'config';
}
/**
* {@inheritdoc}
*/
public function getTitle() {
return $this
->t('Config');
}
/**
* {@inheritdoc}
*/
public function getPanelSummary() {
return $this
->t('Total: @count', [
'@count' => count($this
->getConfigNames()),
]);
}
/**
* {@inheritdoc}
*/
public function getIcon() {
return 'iVBORw0KGgoAAAANSUhEUgAAABsAAAAcCAYAAACQ0cTtAAAAGXRFWHRTb2Z0d2FyZ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d1y/XeL02URQ/4ExhwFOSMbtux0qxgoDHBb+7GiLPG9l8ce2vyYI8nQjHMXn/Fzy+uWzu1Ofpeze32/D29scVgLpjwMEfSrSVUe1PoUK/Yib+N/69+zuy8gJ9apGxzgcfCkLMmjspq3b4qZsH03XKPPP1kLofeC3AAMaxXzYck+ZeAAAAAElFTkSuQmCC';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigDataCollector:: |
public | function | Registers a new requested config name. | |
ConfigDataCollector:: |
public | function | Collects data for the given Request and Response. | |
ConfigDataCollector:: |
public | function | Callback to display the config names. | |
ConfigDataCollector:: |
public | function |
Returns the collector icon in base64 format. Overrides DrupalDataCollectorInterface:: |
|
ConfigDataCollector:: |
public | function |
Returns the name of the collector. Overrides DrupalDataCollectorInterface:: |
|
ConfigDataCollector:: |
public | function |
Returns the string used in vertical tab summary. Overrides DrupalDataCollectorInterface:: |
|
ConfigDataCollector:: |
public | function |
Returns the datacollector title. Overrides DrupalDataCollectorInterface:: |
|
DrupalDataCollectorInterface:: |
public | function | 8 | |
DrupalDataCollectorInterface:: |
public | function | 1 | |
DrupalDataCollectorInterface:: |
public | function | Returns the libraries needed in detail panel. | 2 |
DrupalDataCollectorInterface:: |
public | function | Returns true if this datacollector has a detail panel. | 2 |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |