Returns the key name used to store the configuration setting.
Based on the entity type and bundle, the keys used to store configuration will have a common root name.
@todo Generalize this logic so that it is available to any module needing per-bundle configuration.
string $entity_type: The type of the entity the setting refers to.
string $bundle: The bundle of the entity the setting refers to.
string $setting: The name of the setting.
string The key name of the configuration setting.
function translation_entity_get_config_key($entity_type, $bundle, $setting) {
$entity_type = preg_replace('/[^0-9a-zA-Z_]/', "_", $entity_type);
$bundle = preg_replace('/[^0-9a-zA-Z_]/', "_", $bundle);
return $entity_type . '.' . $bundle . '.translation_entity.' . $setting;
}