Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
[SDPAP-7999] Updated the hook to check the existing cofig id properly. (
Browse files Browse the repository at this point in the history
  • Loading branch information
MdNadimHossain authored Jul 11, 2023
1 parent 2848f63 commit e5af39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tide_site.install
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function tide_site_update_8026() {
foreach ($configs as $config => $type) {
$config_read = _tide_read_config($config, $config_location, TRUE);
$storage = \Drupal::entityTypeManager()->getStorage($type);
$id = substr($config, strrpos($config, '.') + 1);
$id = $storage->getIDFromConfigName($config, $storage->getEntityType()->getConfigPrefix());
if ($storage->load($id) == NULL) {
$config_entity = $storage->createFromStorageRecord($config_read);
$config_entity->save();
Expand Down

0 comments on commit e5af39b

Please sign in to comment.