class ConfigFactoryWrapper in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Config/ConfigFactoryWrapper.php \Drupal\webprofiler\Config\ConfigFactoryWrapper
- 8.2 webprofiler/src/Config/ConfigFactoryWrapper.php \Drupal\webprofiler\Config\ConfigFactoryWrapper
- 4.x webprofiler/src/Config/ConfigFactoryWrapper.php \Drupal\webprofiler\Config\ConfigFactoryWrapper
Wraps a config factory to be able to figure out all used config files.
Hierarchy
- class \Drupal\Core\Config\ConfigFactory implements \Symfony\Component\EventDispatcher\EventSubscriberInterface, ConfigFactoryInterface
- class \Drupal\webprofiler\Config\ConfigFactoryWrapper
Expanded class hierarchy of ConfigFactoryWrapper
File
- webprofiler/
src/ Config/ ConfigFactoryWrapper.php, line 11
Namespace
Drupal\webprofiler\ConfigView source
class ConfigFactoryWrapper extends ConfigFactory {
/**
* @var \Drupal\webprofiler\DataCollector\ConfigDataCollector
*/
private $dataCollector;
/**
* {@inheritdoc}
*/
public function get($name) {
$result = parent::get($name);
$this->dataCollector
->addConfigName($name);
return $result;
}
/**
* {@inheritdoc}
*/
public function loadMultiple(array $names) {
$result = parent::loadMultiple($names);
foreach (array_keys($result) as $name) {
$this->dataCollector
->addConfigName($name);
}
return $result;
}
/**
* @param \Drupal\webprofiler\DataCollector\ConfigDataCollector $dataCollector
*/
public function setDataCollector(ConfigDataCollector $dataCollector) {
$this->dataCollector = $dataCollector;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigFactory:: |
protected | property | Cached configuration objects. | |
ConfigFactory:: |
protected | property | An array of config factory override objects ordered by priority. | |
ConfigFactory:: |
protected | property | An event dispatcher instance to use for configuration events. | |
ConfigFactory:: |
protected | property | A storage instance for reading and writing configuration data. | |
ConfigFactory:: |
protected | property | The typed config manager. | |
ConfigFactory:: |
public | function |
Adds config factory override services. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
public | function |
Clears the config factory static cache. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
protected | function | Creates a configuration object. | |
ConfigFactory:: |
protected | function | Returns a configuration object for a given name. | |
ConfigFactory:: |
protected | function | Returns a list of configuration objects for the given names. | |
ConfigFactory:: |
public | function |
The cache keys associated with the state of the config factory. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
protected | function | Gets the static cache key for a given config name. | |
ConfigFactory:: |
protected | function | Gets all the cache keys that match the provided config name. | |
ConfigFactory:: |
public | function |
Returns an mutable configuration object for a given name. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | |
ConfigFactory:: |
public | function |
Gets configuration object names starting with a given prefix. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
protected | function | Get arbitrary overrides for the named configuration objects from modules. | |
ConfigFactory:: |
public | function | Removes stale static cache entries when configuration is deleted. | |
ConfigFactory:: |
public | function | Updates stale static cache entries when configuration is saved. | |
ConfigFactory:: |
protected | function | Propagates cacheability of config overrides to cached config objects. | |
ConfigFactory:: |
public | function |
Renames a configuration object using the storage. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
public | function |
Resets and re-initializes configuration objects. Internal use only. Overrides ConfigFactoryInterface:: |
|
ConfigFactory:: |
public | function | Constructs the Config factory. | |
ConfigFactoryWrapper:: |
private | property | ||
ConfigFactoryWrapper:: |
public | function |
Returns an immutable configuration object for a given name. Overrides ConfigFactory:: |
|
ConfigFactoryWrapper:: |
public | function |
Returns a list of configuration objects for the given names. Overrides ConfigFactory:: |
|
ConfigFactoryWrapper:: |
public | function |