You are here

interface ConfigFactoryOverrideInterface in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigFactoryOverrideInterface.php \Drupal\Core\Config\ConfigFactoryOverrideInterface

Defines the interface for a configuration factory override object.

Hierarchy

Expanded class hierarchy of ConfigFactoryOverrideInterface

All classes that implement ConfigFactoryOverrideInterface

6 files declare their use of ConfigFactoryOverrideInterface
CacheabilityMetadataConfigOverride.php in core/modules/config/tests/config_override_integration_test/src/CacheabilityMetadataConfigOverride.php
Contains \Drupal\config_override_integration_test\CacheabilityMetadataConfigOverride.
ConfigOverrider.php in core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
Contains \Drupal\config_entity_static_cache_test\ConfigOverrider.
ConfigOverrider.php in core/modules/config/tests/config_override_test/src/ConfigOverrider.php
Contains \Drupal\config_override_test\ConfigOverrider.
ConfigOverriderLowPriority.php in core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php
Contains \Drupal\config_override_test\ConfigOverriderLowPriority.
LanguageConfigFactoryOverrideInterface.php in core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php
Contains \Drupal\language\Config\LanguageConfigFactoryOverrideInterface.

... See full list

File

core/lib/Drupal/Core/Config/ConfigFactoryOverrideInterface.php, line 13
Contains \Drupal\Core\Config\ConfigFactoryOverrideInterface.

Namespace

Drupal\Core\Config
View source
interface ConfigFactoryOverrideInterface {

  /**
   * Returns config overrides.
   *
   * @param array $names
   *   A list of configuration names that are being loaded.
   *
   * @return array
   *   An array keyed by configuration name of override data. Override data
   *   contains a nested array structure of overrides.
   */
  public function loadOverrides($names);

  /**
   * The string to append to the configuration static cache name.
   *
   * @return string
   *   A string to append to the configuration static cache name.
   */
  public function getCacheSuffix();

  /**
   * Creates a configuration object for use during install and synchronization.
   *
   * If the overrider stores its overrides in configuration collections then
   * it can have its own implementation of
   * \Drupal\Core\Config\StorableConfigBase. Configuration overriders can link
   * themselves to a configuration collection by listening to the
   * \Drupal\Core\Config\ConfigEvents::COLLECTION_INFO event and adding the
   * collections they are responsible for. Doing this will allow installation
   * and synchronization to use the overrider's implementation of
   * StorableConfigBase.
   *
   * @see \Drupal\Core\Config\ConfigCollectionInfo
   * @see \Drupal\Core\Config\ConfigImporter::importConfig()
   * @see \Drupal\Core\Config\ConfigInstaller::createConfiguration()
   *
   * @param string $name
   *   The configuration object name.
   * @param string $collection
   *   The configuration collection.
   *
   * @return \Drupal\Core\Config\StorableConfigBase
   *   The configuration object for the provided name and collection.
   */
  public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION);

  /**
   * Gets the cacheability metadata associated with the config factory override.
   *
   * @param string $name
   *   The name of the configuration override to get metadata for.
   *
   * @return \Drupal\Core\Cache\CacheableMetadata
   *   A cacheable metadata object.
   */
  public function getCacheableMetadata($name);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigFactoryOverrideInterface::createConfigObject public function Creates a configuration object for use during install and synchronization. 6
ConfigFactoryOverrideInterface::getCacheableMetadata public function Gets the cacheability metadata associated with the config factory override. 6
ConfigFactoryOverrideInterface::getCacheSuffix public function The string to append to the configuration static cache name. 6
ConfigFactoryOverrideInterface::loadOverrides public function Returns config overrides. 6