Skip to content

Commit

Permalink
updated hook update
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed May 2, 2024
1 parent 88a1f69 commit 7b173da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tide_core.install
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ function tide_core_update_10003() {
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);
$temp = substr($config, strpos($config, '.') + 1);
$id = substr($temp, strpos($config, '.') + 1);
if ($storage->load($id) == NULL) {
$config_entity = $storage->createFromStorageRecord($config_read);
$config_entity->save();
Expand Down

0 comments on commit 7b173da

Please sign in to comment.