interface ImportableEntityStorageInterface (View source)

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.

Methods

importCreate(string $name, Config $new_config, Config $old_config)

Creates entities upon synchronizing configuration changes.

importUpdate(string $name, Config $new_config, Config $old_config)

Updates entities upon synchronizing configuration changes.

importDelete(string $name, Config $new_config, Config $old_config)

Delete entities upon synchronizing configuration changes.

importRename(string $old_name, Config $new_config, Config $old_config)

Renames entities upon synchronizing configuration changes.

Details

importCreate(string $name, Config $new_config, Config $old_config)

Creates entities upon synchronizing configuration changes.

Parameters

string $name

The name of the configuration object.

Config $new_config

A configuration object containing the new configuration data.

Config $old_config

A configuration object containing the old configuration data.

importUpdate(string $name, Config $new_config, Config $old_config)

Updates entities upon synchronizing configuration changes.

Parameters

string $name

The name of the configuration object.

Config $new_config

A configuration object containing the new configuration data.

Config $old_config

A configuration object containing the old configuration data.

Exceptions

ConfigImporterException

importDelete(string $name, Config $new_config, Config $old_config)

Delete entities upon synchronizing configuration changes.

Parameters

string $name

The name of the configuration object.

Config $new_config

A configuration object containing the new configuration data.

Config $old_config

A configuration object containing the old configuration data.

importRename(string $old_name, Config $new_config, Config $old_config)

Renames entities upon synchronizing configuration changes.

Parameters

string $old_name

The original name of the configuration object.

Config $new_config

A configuration object containing the new configuration data.

Config $old_config

A configuration object containing the old configuration data.