ConfigFactory::__construct

public ConfigFactory::__construct(StorageInterface $storage, EventDispatcherInterface $event_dispatcher, TypedConfigManagerInterface $typed_config) Constructs the Config factory. Parameters \Drupal\Core\Config\StorageInterface $storage: The configuration storage engine. \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: An event dispatcher instance to use for configuration events. \Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed configuration

ConfigFactory::reset

public ConfigFactory::reset($name = NULL) Resets and re-initializes configuration objects. Internal use only. Parameters string|null $name: (optional) The name of the configuration object to reset. If omitted, all configuration objects are reset. Return value $this Overrides ConfigFactoryInterface::reset File core/lib/Drupal/Core/Config/ConfigFactory.php, line 231 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code public function reset($na

ConfigFactory::rename

public ConfigFactory::rename($old_name, $new_name) Renames a configuration object using the storage. Parameters string $old_name: The old name of the configuration object. string $new_name: The new name of the configuration object. Return value $this Overrides ConfigFactoryInterface::rename File core/lib/Drupal/Core/Config/ConfigFactory.php, line 252 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code public function rename($old_name, $new_

ConfigFactory::propagateConfigOverrideCacheability

protected ConfigFactory::propagateConfigOverrideCacheability($cache_key, $name) Propagates cacheability of config overrides to cached config objects. Parameters string $cache_key: The key of the cached config object to update. string $name: The name of the configuration object to construct. File core/lib/Drupal/Core/Config/ConfigFactory.php, line 222 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code protected function propagateConfigOverri

ConfigFactory::onConfigSave

public ConfigFactory::onConfigSave(ConfigCrudEvent $event) Updates stale static cache entries when configuration is saved. Parameters ConfigCrudEvent $event: The configuration event. File core/lib/Drupal/Core/Config/ConfigFactory.php, line 337 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code public function onConfigSave(ConfigCrudEvent $event) { // Ensure that the static cache contains up to date configuration objects by // replacing

ConfigFactory::onConfigDelete

public ConfigFactory::onConfigDelete(ConfigCrudEvent $event) Removes stale static cache entries when configuration is deleted. Parameters \Drupal\Core\Config\ConfigCrudEvent $event: The configuration event. File core/lib/Drupal/Core/Config/ConfigFactory.php, line 358 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code public function onConfigDelete(ConfigCrudEvent $event) { // Ensure that the static cache does not contain deleted configura

ConfigFactory::loadOverrides

protected ConfigFactory::loadOverrides(array $names) Get arbitrary overrides for the named configuration objects from modules. Parameters array $names: The names of the configuration objects to get overrides for. Return value array An array of overrides keyed by the configuration object name. File core/lib/Drupal/Core/Config/ConfigFactory.php, line 204 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code protected function loadOverrides(arra

ConfigFactory::loadMultiple

public ConfigFactory::loadMultiple(array $names) Returns a list of configuration objects for the given names. This will pre-load all requested configuration objects does not create new configuration objects. This method always return immutable objects. ConfigFactoryInterface::getEditable() should be used to retrieve mutable configuration objects, one by one. Parameters array $names: List of names of configuration objects. Return value \Drupal\Core\Config\ImmutableConfig[] List of successfully

ConfigFactory::listAll

public ConfigFactory::listAll($prefix = '') Gets configuration object names starting with a given prefix. Parameters string $prefix: (optional) The prefix to search for. If omitted, all configuration object names that exist are returned. Return value array An array containing matching configuration object names. Overrides ConfigFactoryInterface::listAll See also \Drupal\Core\Config\StorageInterface::listAll() File core/lib/Drupal/Core/Config/ConfigFactory.php, line 327 Class ConfigFactor

ConfigFactory::getSubscribedEvents

static ConfigFactory::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eventN