interface ImportableEntityStorageInterface in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Entity/ImportableEntityStorageInterface.php \Drupal\Core\Config\Entity\ImportableEntityStorageInterface
- 9 core/lib/Drupal/Core/Config/Entity/ImportableEntityStorageInterface.php \Drupal\Core\Config\Entity\ImportableEntityStorageInterface
Provides an interface for responding to configuration imports.
When configuration is synchronized between storages, the entity storage must handle the synchronization of configuration data for its entity.
Hierarchy
- interface \Drupal\Core\Config\Entity\ImportableEntityStorageInterface
Expanded class hierarchy of ImportableEntityStorageInterface
All classes that implement ImportableEntityStorageInterface
1 file declares its use of ImportableEntityStorageInterface
- ConfigImporter.php in core/
lib/ Drupal/ Core/ Config/ ConfigImporter.php
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ImportableEntityStorageInterface.php, line 13
Namespace
Drupal\Core\Config\EntityView source
interface ImportableEntityStorageInterface {
/**
* Creates entities upon synchronizing configuration changes.
*
* @param string $name
* The name of the configuration object.
* @param \Drupal\Core\Config\Config $new_config
* A configuration object containing the new configuration data.
* @param \Drupal\Core\Config\Config $old_config
* A configuration object containing the old configuration data.
*/
public function importCreate($name, Config $new_config, Config $old_config);
/**
* Updates entities upon synchronizing configuration changes.
*
* @param string $name
* The name of the configuration object.
* @param \Drupal\Core\Config\Config $new_config
* A configuration object containing the new configuration data.
* @param \Drupal\Core\Config\Config $old_config
* A configuration object containing the old configuration data.
*
* @throws \Drupal\Core\Config\ConfigImporterException
* Thrown when the config entity that should be updated can not be found.
*/
public function importUpdate($name, Config $new_config, Config $old_config);
/**
* Delete entities upon synchronizing configuration changes.
*
* @param string $name
* The name of the configuration object.
* @param \Drupal\Core\Config\Config $new_config
* A configuration object containing the new configuration data.
* @param \Drupal\Core\Config\Config $old_config
* A configuration object containing the old configuration data.
*/
public function importDelete($name, Config $new_config, Config $old_config);
/**
* Renames entities upon synchronizing configuration changes.
*
* @param string $old_name
* The original name of the configuration object.
* @param \Drupal\Core\Config\Config $new_config
* A configuration object containing the new configuration data.
* @param \Drupal\Core\Config\Config $old_config
* A configuration object containing the old configuration data.
*/
public function importRename($old_name, Config $new_config, Config $old_config);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImportableEntityStorageInterface:: |
public | function | Creates entities upon synchronizing configuration changes. | 1 |
ImportableEntityStorageInterface:: |
public | function | Delete entities upon synchronizing configuration changes. | 1 |
ImportableEntityStorageInterface:: |
public | function | Renames entities upon synchronizing configuration changes. | 1 |
ImportableEntityStorageInterface:: |
public | function | Updates entities upon synchronizing configuration changes. | 1 |