interface SyncConfigCollectorInterface in Configuration Synchronizer 8.2
Class for invoking configuration providers.
Hierarchy
- interface \Drupal\config_sync\Plugin\SyncConfigCollectorInterface extends \Drupal\config_provider\Plugin\ConfigCollectorInterface
Expanded class hierarchy of SyncConfigCollectorInterface
All classes that implement SyncConfigCollectorInterface
3 files declare their use of SyncConfigCollectorInterface
- ConfigSyncLister.php in src/
ConfigSyncLister.php - ConfigSyncSnapshotter.php in src/
ConfigSyncSnapshotter.php - SyncFilter.php in src/
Plugin/ ConfigFilter/ SyncFilter.php
File
- src/
Plugin/ SyncConfigCollectorInterface.php, line 10
Namespace
Drupal\config_sync\PluginView source
interface SyncConfigCollectorInterface extends ConfigCollectorInterface {
/**
* Adds configuration for snapshotting.
*
* Call this method instead of ::addInstallableConfig() to add only unaltered
* configuration.
*
* @param \Drupal\Core\Extension\Extension[] $extensions
* (Optional) An associative array of Extension objects, keyed by extension
* name. If provided, data loaded will be limited to these extensions.
*/
public function addConfigForSnapshotting(array $extensions = []);
/**
* Alters configuration snapshots.
*
* In certain cases, the configuration suitable for snapshotting will differ
* from that suitable for comparing to a snapshot. The snapshot should
* reflect the current installed state. If alters are in effect, the
* snapshot should be updated accordingly as a new module is installed or
* updated.
*
* @param \Drupal\Core\Extension\Extension[] $extensions
* (Optional) An associative array of Extension objects, keyed by extension
* name. If provided, data loaded will be limited to these extensions.
*/
public function alterConfigSnapshots(array $extensions = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SyncConfigCollectorInterface:: |
public | function | Adds configuration for snapshotting. | 1 |
SyncConfigCollectorInterface:: |
public | function | Alters configuration snapshots. | 1 |