interface ConfigSyncListerInterface in Configuration Synchronizer 8.2
Same name and namespace in other branches
- 8 src/ConfigSyncListerInterface.php \Drupal\config_sync\ConfigSyncListerInterface
Provides methods related to config listing.
Hierarchy
- interface \Drupal\config_sync\ConfigSyncListerInterface
Expanded class hierarchy of ConfigSyncListerInterface
All classes that implement ConfigSyncListerInterface
5 files declare their use of ConfigSyncListerInterface
- ConfigSyncCommands.php in src/
Commands/ ConfigSyncCommands.php - ConfigSyncImportForm.php in src/
Form/ ConfigSyncImportForm.php - SyncFilter.php in src/
Plugin/ ConfigFilter/ SyncFilter.php - SyncFilterDeriver.php in src/
Plugin/ ConfigFilter/ SyncFilterDeriver.php - UpdateModeTest.php in tests/
src/ Kernel/ UpdateModeTest.php
File
- src/
ConfigSyncListerInterface.php, line 8
Namespace
Drupal\config_syncView source
interface ConfigSyncListerInterface {
/**
* Mode in which available updates are merged into the active configuration.
*/
const UPDATE_MODE_MERGE = 1;
/**
* Mode in which available updates reset the active configuration.
*
* An available update is a difference between the Any customizations of these items in the active configuration are
* discarded.
*/
const UPDATE_MODE_PARTIAL_RESET = 2;
/**
* Mode in which the active configuration is reset to the provided state.
*
* Unlike ::UPDATE_MODE_PARTIAL_RESET, this mode applies to all provided
* conifguration--not only what has available updates. Any customizations in
* the active configuration are discarded.
*/
const UPDATE_MODE_FULL_RESET = 3;
/**
* The default update mode.
*/
const DEFAULT_UPDATE_MODE = self::UPDATE_MODE_MERGE;
/**
* Returns a change list for all installed extensions.
*
* @param array $extension_names
* Array with keys of extension types ('module', 'theme') and values arrays
* of extension names.
*
* @return array
* Associative array of configuration changes keyed by extension type
* (module or theme) in which values are arrays keyed by extension name.
*/
public function getExtensionChangelists(array $extension_names = []);
/**
* Returns a change list for a given module or theme.
*
* @param string $type
* The type of extension (module or theme).
* @param string $name
* The machine name of the extension.
*
* @return array
* Associative array of configuration changes keyed by the type of change
* in which values are arrays of configuration item labels keyed by item
* name.
*/
public function getExtensionChangelist($type, $name);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigSyncListerInterface:: |
constant | The default update mode. | ||
ConfigSyncListerInterface:: |
public | function | Returns a change list for a given module or theme. | 1 |
ConfigSyncListerInterface:: |
public | function | Returns a change list for all installed extensions. | 1 |
ConfigSyncListerInterface:: |
constant | Mode in which the active configuration is reset to the provided state. | ||
ConfigSyncListerInterface:: |
constant | Mode in which available updates are merged into the active configuration. | ||
ConfigSyncListerInterface:: |
constant | Mode in which available updates reset the active configuration. |